summaryrefslogtreecommitdiff
path: root/user/confuse/APKBUILD
blob: 3fe8f33b4bfe91f627809c7cd47c22cc60e7d699 (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
39
40
41
# Contributor: Luis Ressel <aranea@aixah.de>
# Maintainer: Luis Ressel <aranea@aixah.de>
pkgname=confuse
pkgver=3.2.2
pkgrel=0
pkgdesc="Small configuration file parser library for C"
url="https://github.com/martinh/libconfuse"
arch="all"
options="!checkroot"
license="ISC"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-rpath \
		--disable-examples \
		--enable-nls
	make
}

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

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

sha512sums="c6baea65e064fe7f2d1bde187c6dcbb7f03c31f5d777cb04576f9cc2d94e9c96b7ee202e030e9a2c7eb619deb240d9e76fb12b3528ae5aa0d3abe231354d12c9  confuse-3.2.2.tar.xz"