aboutsummaryrefslogtreecommitdiffstats
path: root/main/confuse/APKBUILD
blob: c34aecc0f8d43c414aba0c7736662745b4923e6a (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=confuse
pkgver=3.2
pkgrel=0
pkgdesc="C library for parsing configuration files"
url="https://github.com/martinh/libconfuse"
arch="all"
license="BSD"
depends=""
makedepends="flex bison"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/martinh/libconfuse/releases/download/v$pkgver/confuse-$pkgver.tar.xz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared \
		--disable-nls \
		|| return 1
	make || return 1
	make check || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -D -m644 libconfuse.pc "$pkgdir"/usr/lib/pkgconfig/libconfuse.pc
}

sha512sums="4c81b52bca951ab46961ed91bf9e887f7940dedfb69eaf2f6905cb2d88275e635c80d2570797e4276b5cd970b805ab902da6cd6f89dc64216b0b02445c912acd  confuse-3.2.tar.xz"