# vim: set syn=sh: # Packager: Phill Watkins pkgname=libdbi pkgver=0.8.4 pkgrel=1pw #arch=noarch source=("http://downloads.sourceforge.net/project/libdbi/libdbi/libdbi-$pkgver/libdbi-$pkgver.tar.gz") sourcetemplate=http://people.salixos.org/pwatk/packages/extra/$pkgname docs=("AUTHORS" "ChangeLog" "COPYING" "INSTALL" "NEWS" "README" "TODO") url=http://libdbi.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "libdbi (Database-independent abstraction layer in C)" "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." ) build() { set -e cd $startdir/src/$pkgname-$pkgver 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 make -j $numjobs make install \ DESTDIR=$startdir/pkg \ docdir=/usr/doc/$pkgname-$pkgver set +e }