# $Id: PKGBUILD 94606 2010-10-08 18:17:20Z andyrtr $ # Maintainer: Andreas Radke # Contributor: Tom Newsom pkgname=sqlite3 _amalgamationver=3070400 _amalgamationver2=${_amalgamationver/00/} pkgver=${_amalgamationver2//0/.} pkgrel=1 pkgdesc="A C library that implements an SQL database engine" arch=('i686' 'x86_64') license=('custom') url="http://www.sqlite.org/" depends=('readline>=6.0.00') makedepends=('tcl') conflicts=('sqlite') replaces=('sqlite') source=( http://www.sqlite.org/sqlite-autoconf-$_amalgamationver.tar.gz http://www.sqlite.org/sqlite-tea-$_amalgamationver.tar.gz # tarball of the amalgamation together with a Tcl Extension Architecture (TEA) compatible configure script and makefile http://www.sqlite.org/sqlite-doc-$_amalgamationver.zip) options=(!libtool) build() { export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE -DSQLITE_THREADSAFE " cd "$srcdir"/sqlite-tea-$_amalgamationver ./configure --prefix=/usr cd "$srcdir"/sqlite-autoconf-$_amalgamationver ./configure --prefix=/usr make } package_sqlite3() { cd "$srcdir"/sqlite-tea-$_amalgamationver make DESTDIR="$pkgdir" install cd "$srcdir"/sqlite-autoconf-$_amalgamationver make DESTDIR="$pkgdir" install } package_sqlite3-doc() { pkgdesc="most of the static HTML files that comprise this website, including all of the SQL Syntax and the C/C++ interface specs and other miscellaneous documentation" #arch=('any') - not yet supported cd "$srcdir"/sqlite-doc-${_amalgamationver} mkdir -p "$pkgdir"/usr/share/doc/${pkgbase} cp -R * "$pkgdir"/usr/share/doc/${pkgbase}/ } md5sums=('8f0c690bfb33c3cbbc2471c3d9ba0158' '75ff26334a5345caf2c0875da82bd918' 'c38a4aae9cf6e8921ba7ad48a9301288')