summaryrefslogtreecommitdiff
path: root/extra/dotconf
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/dotconf
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/dotconf')
-rw-r--r--extra/dotconf/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/extra/dotconf/PKGBUILD b/extra/dotconf/PKGBUILD
new file mode 100644
index 000000000..14b7bb6f1
--- /dev/null
+++ b/extra/dotconf/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Chris Brannon <cmbrannon@cox.net>
+
+pkgname=dotconf
+pkgver=1.3
+pkgrel=1
+pkgdesc='A C library for parsing configuration files'
+url="http://www.opentts.org/projects/dotconf/"
+arch=('i686' 'x86_64')
+depends=('glibc')
+makedepends=('pkgconfig' 'findutils')
+license=('LGPL2.1')
+source=("http://files.opentts.org/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('35c19ec9b96648f53e987e47e52dbc4c')
+options=('!libtool')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # There are no manpages. Docu consists of textfiles and small examples.
+ # "make install" didn't install the docu, so do it manually.
+ install -d ${pkgdir}/usr/share/doc/${pkgname}
+ cp -a doc/*.txt README examples/ ${pkgdir}/usr/share/doc/${pkgname}
+ # Get rid of files specific to Microsoft products:
+ find ${pkgdir}/usr/share/doc/${pkgname} -name '*.dsp' | xargs rm -f
+
+ # Dotconf uses libpool internally for memory management. No need to install.
+ rm -f ${pkgdir}/usr/lib/libpool.a
+ rm -f ${pkgdir}/usr/include/libpool.h
+}