From 65e44288f66da097020e1579acacabbd36d70c4a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 8 Apr 2011 18:09:30 +0200 Subject: [PATCH] sqlite: update to 3.7.5. --- srcpkgs/sqlite/sqlite-tcl.template | 2 +- srcpkgs/sqlite/template | 41 ++++++++++++++++++++++-------- 2 files changed, 31 insertions(+), 12 deletions(-) diff --git a/srcpkgs/sqlite/sqlite-tcl.template b/srcpkgs/sqlite/sqlite-tcl.template index 0f61b90edd..e43c2d5a69 100644 --- a/srcpkgs/sqlite/sqlite-tcl.template +++ b/srcpkgs/sqlite/sqlite-tcl.template @@ -12,5 +12,5 @@ Add_dependency run tcl do_install() { mkdir -p ${DESTDIR}/usr/lib - mv ${SRCPKGDESTDIR}/usr/lib/tcl* ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/sqlite* ${DESTDIR}/usr/lib } diff --git a/srcpkgs/sqlite/template b/srcpkgs/sqlite/template index bc2a6df2f3..fa5eb11c25 100644 --- a/srcpkgs/sqlite/template +++ b/srcpkgs/sqlite/template @@ -1,14 +1,18 @@ # Template build file for 'sqlite'. pkgname=sqlite -version=3.7.3 -distfiles="http://sqlite.org/$pkgname-$version.tar.gz" -build_style=gnu_configure -configure_env="LIBS=-ldl" -configure_args="--enable-load-extension --enable-threadsafe - --enable-threads-override-locks --enable-cross-thread-connections" +version=3.7.5 +_amalgamationver=3070500 +wrksrc=sqlite +create_wrksrc=yes +distfiles=" +http://www.sqlite.org/sqlite-autoconf-${_amalgamationver}.tar.gz +http://www.sqlite.org/sqlite-tea-${_amalgamationver}.tar.gz" +build_style=custom-install short_desc="SQL Database Engine in a C Library" maintainer="Juan RP " -checksum=dbf352e8fbb74829f5e7a88f9f6ceeb80a709537f668c36e4b6cdfb271309ef6 +checksum=" +cb5b86926ec9f65882b2dddd244f2d620337d911ec73411863f77e48cf6a2f94 +7404ea2d1e6e623e2dfedc3bba4f81d4a7a65e69844a2ab8fbdfb8f4067401a7" long_desc=" SQLite is a C library that implements an SQL database engine. Programs that link with the SQLite library can have SQL database access without @@ -27,9 +31,24 @@ Add_dependency run readline Add_dependency build readline-devel Add_dependency build tcl-devel -post_install() +do_build() { - # Install the manpage - install -D -m644 ${wrksrc}/sqlite3.1 \ - ${DESTDIR}/usr/share/man/man1/sqlite3.1 + export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 \ + -DSQLITE_ENABLE_COLUMN_METADATA=1 \ + -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" + cd ${wrksrc}/sqlite-autoconf-${_amalgamationver} + ./configure --prefix=/usr + make ${makejobs} + + cd ${wrksrc}/sqlite-tea-${_amalgamationver} + ./configure --prefix=/usr --with-system-sqlite + make ${makejobs} +} + +do_install() +{ + cd ${wrksrc}/sqlite-autoconf-${_amalgamationver} + make DESTDIR=${DESTDIR} install + cd ${wrksrc}/sqlite-tea-${_amalgamationver} + make DESTDIR=${DESTDIR} install }