diff options
author | Vladimir Panteleev | 2016-11-13 14:20:48 +0000 |
---|---|---|
committer | Vladimir Panteleev | 2016-11-13 14:20:48 +0000 |
commit | 954d1f176a04e31abc85b10d954559eef7848fbf (patch) | |
tree | 4efffcf80e91e7b8bae5bd2c7895cd7f7c8e9540 /PKGBUILD | |
download | aur-libcfg+.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..316eecc38814 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net> +pkgbase=libcfg+ +pkgname=(libcfg+ libcfg+-docs) +pkgver=0.7.0 +pkgrel=1 +pkgdesc="command line and configuration file parsing library" +arch=('i686' 'x86_64') +url="http://opensource.platon.org/projects/main_page.php?project_id=3" +license=('GPL') +depends=() +source=("http://opensource.platon.org/upload/_projects/00003/libcfg+-${pkgver}.tar.gz") +md5sums=('7f8a415e508da4b2b060d3894d4c510a') + +build() { + cd "$srcdir/$pkgbase-$pkgver" + + unset CFLAGS LDFLAGS + + ./configure --prefix=/usr + make +} + +package_libcfg+() { + cd "$srcdir/$pkgbase-$pkgver" + + make -j1 DESTDIR="$pkgdir/" install + rm -rf "$pkgdir/usr/share" +} + +package_libcfg+-docs() { + pkgdesc="${pkgdesc} (documentation)" + arch=(any) + + cd "$srcdir/$pkgbase-$pkgver" + + make -j1 DESTDIR="$pkgdir/" install + rm -rf "$pkgdir/usr/include" "$pkgdir/usr/lib" +} |