Date: Friday, December 10, 2010 @ 14:17:25 Author: andyrtr Revision: 102733
upgpkg: sqlite3 3.7.4-1 new upstream release 3.7.4; add -DSQLITE_SECURE_DELETE #20797; add splitted doc pkg Modified: sqlite3/trunk/PKGBUILD ----------+ PKGBUILD | 43 ++++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2010-12-10 16:47:06 UTC (rev 102732) +++ PKGBUILD 2010-12-10 19:17:25 UTC (rev 102733) @@ -2,27 +2,29 @@ # Maintainer: Andreas Radke <[email protected]> # Contributor: Tom Newsom <[email protected]> -pkgname=sqlite3 -pkgver=3.7.3 +pkgbase="sqlite3" +pkgname=('sqlite3' 'sqlite3-doc') +_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-$pkgver.tar.gz +makedepends=('tcl' 'readline>=6.0.00') +source=(http://www.sqlite.org/sqlite-src-${_amalgamationver}.zip + http://www.sqlite.org/sqlite-doc-${_amalgamationver}.zip license.txt) options=(!libtool) -md5sums=('5437978aae90350cf984993091e0d695' +md5sums=('2b5c53328505893599de6e2055996d7a' + 'c38a4aae9cf6e8921ba7ad48a9301288' 'c1cdbc5544034d9012e421e75a5e4890') build() { - cd ${srcdir}/sqlite-${pkgver} + cd ${srcdir}/sqlite-src-${_amalgamationver} export LTLINK_EXTRAS="-ldl" - export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY" + export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" ./configure --prefix=/usr \ --enable-threadsafe \ --enable-threads-override-locks \ @@ -37,11 +39,26 @@ make } -package() { - cd ${srcdir}/sqlite-${pkgver} +package_sqlite3() { + + pkgdesc="A C library that implements an SQL database engine" + depends=('readline>=6.0.00') + conflicts=('sqlite') + replaces=('sqlite') + + cd ${srcdir}/sqlite-src-${_amalgamationver} make DESTDIR=${pkgdir} install install -Dm0644 sqlite3.1 ${pkgdir}/usr/share/man/man1/sqlite3.1 # license - install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt + install -D -m644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt } + +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}/ +}
