summaryrefslogtreecommitdiffstats
path: root/main/confuse/APKBUILD
blob: ec90644fa296021aabbae67b27de7d8c621430e5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=confuse
pkgver=2.6
pkgrel=1
pkgdesc="C-library for parsing configuration files"
url="http://www.nongnu.org/confuse"
license="LGPL"
depends=
makedepends="flex bison pkgconfig"
subpackages="$pkgname-dev"
source="http://bzero.se/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	# drop -Werror
	sed -i -e 's/-Werror//' */Makefile.* || die

	./configure --prefix=/usr \
		--enable-shared \
		--disable-nls
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
	install -D -m644 libconfuse.pc "$pkgdir"/usr/lib/pkgconfig/libconfuse.pc
}
md5sums="0e883d66f0f58fc33585b430c652aa30  confuse-2.6.tar.gz"