# vim: set syn=sh: # Packager: Phill Watkins pkgname=libdbi-drivers pkgver=0.8.3.1 pkgrel=1pw #arch=noarch source=("http://downloads.sourceforge.net/project/libdbi-drivers/libdbi-drivers/libdbi-drivers-0.8.3-1/libdbi-drivers-0.8.3-1.tar.gz") sourcetemplate=http://people.salixos.org/pwatk/packages/extra/$pkgname docs=("AUTHORS" "ChangeLog" "COPYING" "INSTALL" "NEWS" "README" "TODO") url=http://libdbi-drivers.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "libdbi-drivers (Drivers for the libdbi framework)" "libdbi implements a database-independent abstraction layer in C," "similar to the DBI/DBD layer in Perl. Writing one generic set of code," "programmers can leverage the power of multiple databases and multiple" "simultaneous database connections by using this framework." "" "libdbi-drivers supplies the drivers that the libdbi framework utilizes" "to talk to the supported database servers." ) build() { set -e cd $startdir/src/$pkgname-*/ sed \ -e "/CFLAGS=/s|-O20 |$CFLAGS |g" \ -e "/PROFILE=/s|-O20 |$CFLAGS |g" \ -i configure ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --infodir=/usr/info \ --build=$arch-slackware-linux \ --disable-static \ --disable-docs \ --with-dbi-libdir=/usr/lib${LIBDIRSUFFIX} \ --with-mysql \ --with-mysql-incdir=/usr/include/mysql \ --with-mysql-libdir=/usr/lib${LIBDIRSUFFIX}/mysql \ --with-sqlite3 \ --with-sqlite3-incdir=/usr/include \ --with-sqlite3-libdir=/usr/lib${LIBDIRSUFFIX} make -j $numjobs make install \ DESTDIR=$startdir/pkg \ docdir=/usr/doc/$pkgname-$pkgver set +e }