blob: 03da38afa2e83deee5ef9ce33333f77c6fc7e852 (
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.8
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
}
md5sums="cb552c5737a72ef164733f0118971eb0 confuse-2.8.tar.xz"
sha256sums="2a8102bfa3ccc846c14d94a81b0abfb4f5e855809f89ff3722aca1a9f314ea0d confuse-2.8.tar.xz"
sha512sums="af428936caad9dac0bf052210abeb0fd4b4450114a2a5185db7d995e11cdd0e52cb0148bb46228d26e38a4b50a2810f6e4b282502f0e34c617bf4368795a9d79 confuse-2.8.tar.xz"
|