summaryrefslogtreecommitdiffstats
path: root/abs/extra/libconfig
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/libconfig')
-rw-r--r--abs/extra/libconfig/PKGBUILD33
-rw-r--r--abs/extra/libconfig/libconfig.install18
2 files changed, 51 insertions, 0 deletions
diff --git a/abs/extra/libconfig/PKGBUILD b/abs/extra/libconfig/PKGBUILD
new file mode 100644
index 0000000..fe7ac1e
--- /dev/null
+++ b/abs/extra/libconfig/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 55397 2011-09-11 21:15:58Z spupykin $
+# Maintainer: Ray Rashif <schiv@archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: see .contrib
+
+pkgname=libconfig
+pkgver=1.4.8
+pkgrel=1
+pkgdesc="C/C++ Configuration File Library"
+arch=('i686' 'x86_64')
+url="http://hyperrealm.com/libconfig/libconfig.html"
+license=('LGPL')
+depends=('gcc-libs' 'texinfo')
+install=$pkgname.install
+options=('!libtool' '!emptydirs' 'zipman')
+source=("http://www.hyperrealm.com/libconfig/$pkgname-$pkgver.tar.gz")
+md5sums=('36788da452e9fcfc8efb7661ef5d31ef')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ rm "$pkgdir/usr/share/info/dir"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/extra/libconfig/libconfig.install b/abs/extra/libconfig/libconfig.install
new file mode 100644
index 0000000..c03d5f7
--- /dev/null
+++ b/abs/extra/libconfig/libconfig.install
@@ -0,0 +1,18 @@
+infodir=/usr/share/info
+filelist=(libconfig.info.gz)
+
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}