summaryrefslogtreecommitdiff
path: root/multilib/lib32-sqlite3/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/lib32-sqlite3/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/lib32-sqlite3/PKGBUILD')
-rw-r--r--multilib/lib32-sqlite3/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/multilib/lib32-sqlite3/PKGBUILD b/multilib/lib32-sqlite3/PKGBUILD
new file mode 100644
index 000000000..a1e3d8fec
--- /dev/null
+++ b/multilib/lib32-sqlite3/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Biru Ionut <ionut@archlinux.ro>
+# Contributor: Mikko Seppälä <t-r-a-y@mbnet.fi>
+# Contributor: Kaos < gianlucaatlas dot gmail dot com >
+
+_pkgbasename=sqlite3
+pkgname=lib32-sqlite3
+_amalgamationver=3070400
+pkgver=3.7.4
+pkgrel=1
+pkgdesc="A C library that implements an SQL database engine (32-bit)"
+arch=('x86_64')
+license=('custom')
+url="http://www.sqlite.org/"
+depends=(lib32-glibc $_pkgbasename)
+makedepends=('tcl' 'gcc-multilib' 'lib32-readline')
+source=(http://www.sqlite.org/sqlite-src-${_amalgamationver}.zip)
+options=(!libtool)
+md5sums=('2b5c53328505893599de6e2055996d7a')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ 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 -DSQLITE_SECURE_DELETE"
+ ./configure --prefix=/usr --libdir=/usr/lib32 \
+ --enable-threadsafe \
+ --enable-threads-override-locks \
+ --enable-cross-thread-connections \
+ --disable-static --disable-tcl \
+ --enable-load-extension
+
+ # rpath removal
+ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+ make
+}
+
+
+package() {
+ cd ${srcdir}/sqlite-src-${_amalgamationver}
+ make DESTDIR=${pkgdir} install
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}