blob: 5ace24ce0cc3f95f247b96e605ab7a03b373ee10 (
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
43
44
45
46
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=argp-standalone
pkgver=1.3
pkgrel=1
pkgdesc="Hierarchial argument parsing library broken out from glibc"
url="http://www.lysator.liu.se/~nisse/misc/"
[ "$ALPINE_LIBC" != "eglibc" ] && arch="all"
license="GPL2+"
depends=""
depends_dev="libtool automake autoconf"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://www.lysator.liu.se/~nisse/misc/$pkgname-$pkgver.tar.gz
001-throw-in-funcdef.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
install -D -m644 argp.h "$pkgdir"/usr/include/argp.h
install -D -m755 libargp.a "$pkgdir"/usr/lib/libargp.a
}
md5sums="720704bac078d067111b32444e24ba69 argp-standalone-1.3.tar.gz
05ba8faf86b1f320127119e9bfc76d1a 001-throw-in-funcdef.patch"
|