aboutsummaryrefslogtreecommitdiffstats
path: root/main/confuse/APKBUILD
blob: 2bc2eb351948b164ec7fb4f7a5278a30dd8c62d2 (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
41
42
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=confuse
pkgver=2.7
pkgrel=3
pkgdesc="C library for parsing configuration files"
url="http://www.nongnu.org/confuse"
arch="all"
license="BSD"
depends=""
makedepends="flex bison"
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
	make check || return 1
}

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

md5sums="45932fdeeccbb9ef4228f1c1a25e9c8f  confuse-2.7.tar.gz"
sha256sums="e32574fd837e950778dac7ade40787dd2259ef8e28acd6ede6847ca895c88778  confuse-2.7.tar.gz"
sha512sums="c9a9236c4e15928bbf41da5c0d35f85e6f939a5247a37edf3f5b2921d27c9db3773c26f1bcaa8b6433b498c0920cc5d48bd5486dc394e17af112b36f49f95a42  confuse-2.7.tar.gz"