aboutsummaryrefslogtreecommitdiffstats
path: root/main/confuse/APKBUILD
blob: d188ed069ec14034fd020a756066a8f17560fb41 (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.3
pkgrel=1
pkgdesc="C library for parsing configuration files"
url="https://github.com/libconfuse/libconfuse"
arch="all"
license="ISC"
makedepends="flex bison"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/libconfuse/libconfuse/releases/download/v$pkgver/confuse-$pkgver.tar.xz"


# secfixes:
#   3.2.2-r0:
#     - CVE-2018-14447

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared \
		--disable-nls
	make
}

check() {
	make check
}


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

sha512sums="93cc62d98166199315f65a2f6f540a9c0d33592b69a2c6a57fd17f132aecc6ece39b9813b96c9a49ae2b66a99b7eba1188a9ce9e360e1c5fb4b973619e7088a0  confuse-3.3.tar.xz"