summaryrefslogtreecommitdiff
path: root/argtable/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-25 13:37:51 +0200
committerErich Eckner <git@eckner.net>2016-05-25 17:03:03 +0200
commitb44d3848eb0a777ee1bdc1cdf2d9653e8edf7a60 (patch)
treec96c832b917a1703f0a556b88761471cdd9814b9 /argtable/PKGBUILD
parent7d19f3b271b345ec2d8c053bd9341ca4e2f9068a (diff)
downloadarchlinuxewe-b44d3848eb0a777ee1bdc1cdf2d9653e8edf7a60.tar.xz
argtable neu
Diffstat (limited to 'argtable/PKGBUILD')
-rw-r--r--argtable/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/argtable/PKGBUILD b/argtable/PKGBUILD
new file mode 100644
index 000000000..90e80849e
--- /dev/null
+++ b/argtable/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: TDY <tdy@archlinux.info>
+# Contributor: Mark Taylor <skymt0 at gmail dot com>
+
+pkgname=argtable
+true && pkgname=('argtable' 'argtable-docs')
+pkgver=2.13
+pkgrel=1
+pkgdesc="An ANSI C command line parser"
+arch=('i686' 'x86_64')
+url="http://argtable.sourceforge.net/"
+license=('GPL')
+changelog=$pkgname.changelog
+source=(http://downloads.sourceforge.net/argtable/$pkgname${pkgver/./-}.tar.gz)
+sha512sums=('3d8303f3ba529e3241d918c0127a16402ece951efb964d14a06a3a7d29a252812ad3c44e96da28798871e9923e73a2cfe7ebc84139c1397817d632cae25c4585')
+
+build() {
+ cd "$srcdir/${pkgname%-*}${pkgver/./-}"
+ ./configure --prefix=/usr
+ make
+}
+
+check_argtable() {
+ cd "$srcdir/${pkgname%-*}${pkgver/./-}"
+ make -k check
+}
+
+package_argtable() {
+ depends=('glibc')
+ options=('!libtool')
+
+ cd "$srcdir/${pkgname%-*}${pkgver/./-}"
+ sed -i '/^install-data-am:/s/install-dist_exampleDATA //' Makefile
+ make SUBDIRS="src tests" DESTDIR="$pkgdir/" install
+}
+
+package_argtable-docs() {
+ true && pkgdesc="Documentation and examples for argtable"
+ true && arch=('any')
+
+ cd "$srcdir/${pkgname%-*}${pkgver/./-}"
+ make -C doc DESTDIR="$pkgdir/" install
+ make DESTDIR="$pkgdir/" install-dist_exampleDATA
+}
+
+# vim:set ts=2 sw=2 et: