mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-11 19:02:42 +01:00
36 lines
862 B
Plaintext
36 lines
862 B
Plaintext
# 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"
|
|
|
|
build() {
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
# drop -Werror
|
|
sed -i -e 's/-Werror//' */Makefile.* || die
|
|
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--enable-shared \
|
|
--disable-nls \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
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"
|