summaryrefslogtreecommitdiff
path: root/community/libdbi
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 /community/libdbi
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/libdbi')
-rw-r--r--community/libdbi/PKGBUILD27
-rw-r--r--community/libdbi/libdbi.install19
2 files changed, 46 insertions, 0 deletions
diff --git a/community/libdbi/PKGBUILD b/community/libdbi/PKGBUILD
new file mode 100644
index 000000000..b05487261
--- /dev/null
+++ b/community/libdbi/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>
+# Contributor: Carl Flippin <carlf@photocarl.org>
+
+pkgname=libdbi
+pkgver=0.8.4
+pkgrel=1
+pkgdesc="A database independant abstraction layer for C"
+url="http://libdbi.sourceforge.net"
+license=('LGPL')
+arch=('i686' 'x86_64')
+depends=('glibc')
+options=(!libtool)
+install=libdbi.install
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('c5f15407ef7b07ba854cd8c9b15b88ff')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR=${pkgdir} install
+}
+
diff --git a/community/libdbi/libdbi.install b/community/libdbi/libdbi.install
new file mode 100644
index 000000000..158201554
--- /dev/null
+++ b/community/libdbi/libdbi.install
@@ -0,0 +1,19 @@
+# arg 1: the new package version
+post_install() {
+ ldconfig
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ ldconfig
+}
+
+# arg 1: the old package version
+post_remove() {
+ ldconfig
+}
+
+op=$1
+shift
+$op $*