summaryrefslogtreecommitdiff
path: root/community/libdbi-drivers
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/libdbi-drivers
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/libdbi-drivers')
-rw-r--r--community/libdbi-drivers/PKGBUILD40
-rw-r--r--community/libdbi-drivers/libdbi-drivers.install19
2 files changed, 59 insertions, 0 deletions
diff --git a/community/libdbi-drivers/PKGBUILD b/community/libdbi-drivers/PKGBUILD
new file mode 100644
index 000000000..d69d86823
--- /dev/null
+++ b/community/libdbi-drivers/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 87120 2013-03-27 15:21:01Z ttoepper $
+# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>
+# Contributor: Olivier Médoc <o_medoc@yahoo.fr>
+# Contributor: Ashok `ScriptDevil` Gautham <ScriptDevil.Arch@gmail.com>
+
+pkgname=libdbi-drivers
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="Database drivers for libdbi (MySQL, PostgreSQL, and SQLite)"
+url="http://libdbi-drivers.sourceforge.net/"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('libdbi')
+makedepends=('postgresql-libs' 'libmariadbclient' 'sqlite2' 'sqlite')
+optdepends=("postgresql-libs: To work with postgresql using libdbdpgsql "
+ "sqlite3: To work with sqlite3 using libdbdsqlite3"
+ "libmariadbclient: To work with mysql using libdbdmysql"
+ "sqlite2: To work with sqlite2 using libdbdsqlite")
+options=(!libtool)
+install=libdbi-drivers.install
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha1sums=('8472875d30c216540d48d591b442e40ba4f7df5d')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
+ --disable-docs \
+ --with-libdbi \
+ --with-mysql \
+ --with-pgsql \
+ --with-sqlite \
+ --with-sqlite3
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR=${pkgdir} install
+}
+
diff --git a/community/libdbi-drivers/libdbi-drivers.install b/community/libdbi-drivers/libdbi-drivers.install
new file mode 100644
index 000000000..158201554
--- /dev/null
+++ b/community/libdbi-drivers/libdbi-drivers.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 $*