aboutsummaryrefslogtreecommitdiffstats
path: root/main/gengetopt
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-08-21 09:02:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-08-21 09:02:29 +0000
commit2d11c74f6d4dc00b0ec732cab6caeb24bd925a14 (patch)
tree7e18b9565f8480b3563f9f2d2ca7bebddbb1be7d /main/gengetopt
parentb1b1bf217533bb6149e7d27bbab5cb7072bf8b6c (diff)
downloadaports-2d11c74f6d4dc00b0ec732cab6caeb24bd925a14.tar.bz2
aports-2d11c74f6d4dc00b0ec732cab6caeb24bd925a14.tar.xz
main/gengetopt: moved from testing
needed by zmap
Diffstat (limited to 'main/gengetopt')
-rw-r--r--main/gengetopt/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/main/gengetopt/APKBUILD b/main/gengetopt/APKBUILD
new file mode 100644
index 0000000000..a122fb55eb
--- /dev/null
+++ b/main/gengetopt/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=gengetopt
+pkgver=2.22.6
+pkgrel=1
+pkgdesc="Tool to write command line option parsing code for C programs"
+url="http://www.gnu.org/software/gengetopt/"
+arch="all"
+license="GPLv3+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://ftp.gnu.org/gnu/gengetopt/gengetopt-$pkgver.tar.gz"
+
+_builddir="$srcdir"/gengetopt-$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
+ update_config_sub
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make -j1 || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="29749a48dda69277ab969c510597a14e gengetopt-2.22.6.tar.gz"
+sha256sums="30b05a88604d71ef2a42a2ef26cd26df242b41f5b011ad03083143a31d9b01f7 gengetopt-2.22.6.tar.gz"
+sha512sums="dad5baf1b6c4c76ae7f532dd63c6aecdc30f31d68a259b6a26a10197f1fe42dc9147a52ac12a0c3fc4b7cd61d288a343a9223f967a5a9a15a0614330b41f68dc gengetopt-2.22.6.tar.gz"