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

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	sed -i -e 's/-Werror//' */Makefile.* || die
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -D -m644 libconfuse.pc "$pkgdir"/usr/lib/pkgconfig/libconfuse.pc
}
md5sums="45932fdeeccbb9ef4228f1c1a25e9c8f  confuse-2.7.tar.gz"