summaryrefslogtreecommitdiff
path: root/user/libxdg-basedir/APKBUILD
blob: aa2e4ca5be22de565e9357124cee8a15d6a6774e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
# TODO: Repackage from better source, rehost or something.
pkgname=libxdg-basedir
pkgver=1.2.0
pkgrel=0
pkgdesc="library for XDG base dir specification"
url="https://nevill.ch/libxdg-basedir/"
arch="all"
license="MIT"
depends=""
makedepends=""
subpackages="$pkgname-dev"
source="https://nevill.ch/libxdg-basedir/downloads/$pkgname-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgname-$pkgver"
build() {
	cd "$builddir"
	./autogen.sh \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="8584405d45e0b57e570666b6eab6d99d70411d00f88965826c9ed0292372385668f190157a10ff536f3a5a59fd0031b332ecbb8a38ac64eda1b04a0603997406  libxdg-basedir-1.2.0.tar.gz"