summaryrefslogtreecommitdiff
path: root/user/argp-standalone/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 23:40:46 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 23:40:46 -0500
commit26310cd455ee446af79dae44cd1a845df6d3794d (patch)
treea7de9cb0739f6c7d7af94d496f0b29a1cc00e3be /user/argp-standalone/APKBUILD
parent8bcd602eb7b573a1154eb4e826647491080ae2de (diff)
downloadpackages-26310cd455ee446af79dae44cd1a845df6d3794d.tar.gz
packages-26310cd455ee446af79dae44cd1a845df6d3794d.tar.bz2
packages-26310cd455ee446af79dae44cd1a845df6d3794d.tar.xz
packages-26310cd455ee446af79dae44cd1a845df6d3794d.zip
user/argp-standalone: pull in, fix up, fix license
Diffstat (limited to 'user/argp-standalone/APKBUILD')
-rw-r--r--user/argp-standalone/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/user/argp-standalone/APKBUILD b/user/argp-standalone/APKBUILD
new file mode 100644
index 000000000..846ed4c61
--- /dev/null
+++ b/user/argp-standalone/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=argp-standalone
+pkgver=1.3
+pkgrel=4
+pkgdesc="Hierarchial argument parsing library broken out from glibc"
+url="http://www.lysator.liu.se/~nisse/misc/"
+arch="all"
+options="!dbg"
+license="LGPL-2.0+ AND Public-Domain"
+depends=""
+makedepends="libtool automake autoconf"
+source="http://www.lysator.liu.se/~nisse/misc/$pkgname-$pkgver.tar.gz
+ 001-throw-in-funcdef.patch
+ gnu89-inline.patch
+ "
+
+builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ default_prepare
+ cd "$builddir"
+ autoreconf -vif
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ make -C "$builddir" check
+}
+
+package() {
+ cd "$builddir"
+ install -D -m644 argp.h "$pkgdir"/usr/include/argp.h
+ install -D -m755 libargp.a "$pkgdir"/usr/lib/libargp.a
+}
+
+sha512sums="58c3feb8852b90248fff39e49b5019bd0dcf646790c3eaf70c3262eb81dda31a61dc0a45963c7b4a010e80fc14b37288dcb3b3ef48d02f2d33dd72c1c62e62d9 argp-standalone-1.3.tar.gz
+5e4cdeeb16e6a4fb46a00ab95f3da9276ee554eec00bb2a05da7467961234ba3f9a630aafa7ceb5feb429a84ece8bf03b869fa996b86468f4716935a914c79a4 001-throw-in-funcdef.patch
+69f1d8a4fcd542346f98bc1fb7151db748483fc2f331c8c35114e0891d867b41c603ddaa5f3130aaaf1c640e02c51ac71cee71b62c09301b146812e9059e9ade gnu89-inline.patch"