summaryrefslogtreecommitdiff
path: root/community/libconfig
diff options
context:
space:
mode:
Diffstat (limited to 'community/libconfig')
-rw-r--r--community/libconfig/PKGBUILD25
-rw-r--r--community/libconfig/libconfig.install18
2 files changed, 43 insertions, 0 deletions
diff --git a/community/libconfig/PKGBUILD b/community/libconfig/PKGBUILD
new file mode 100644
index 000000000..64fd9a145
--- /dev/null
+++ b/community/libconfig/PKGBUILD
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD 43902 2011-03-31 09:30:15Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Roman Kyrylych <roman@archlinux.org>
+# Contributor: scippio <scippio@seznam.cz>
+
+pkgname=libconfig
+pkgver=1.4.7
+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=libconfig.install
+options=('!libtool' '!emptydirs' 'zipman')
+source=(http://www.hyperrealm.com/libconfig/$pkgname-$pkgver.tar.gz)
+md5sums=('d57da7a91aadbfd53afedb5c1bade5f4')
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=${pkgdir} install
+ rm ${pkgdir}/usr/share/info/dir
+}
diff --git a/community/libconfig/libconfig.install b/community/libconfig/libconfig.install
new file mode 100644
index 000000000..c03d5f7fa
--- /dev/null
+++ b/community/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
+}