diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/libdbi-drivers | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/libdbi-drivers')
-rw-r--r-- | community/libdbi-drivers/PKGBUILD | 40 | ||||
-rw-r--r-- | community/libdbi-drivers/libdbi-drivers.install | 19 |
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 $* |