diff options
author | root <root@rshg054.dnsready.net> | 2012-09-07 00:03:53 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-07 00:03:53 +0000 |
commit | ed51a8c1611ffa602f5f9628c858f6edbc218fc8 (patch) | |
tree | 9da1c83153c6a7313cc5fbdc6a361083051e9f1d /multilib | |
parent | 3a491cfc574c49ee5f006f74323b6d432d372ab8 (diff) |
Fri Sep 7 00:03:53 UTC 2012
Diffstat (limited to 'multilib')
-rw-r--r-- | multilib/lib32-sqlite/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/multilib/lib32-sqlite/PKGBUILD b/multilib/lib32-sqlite/PKGBUILD new file mode 100644 index 000000000..fce5a8978 --- /dev/null +++ b/multilib/lib32-sqlite/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=sqlite +pkgname=lib32-sqlite +_amalgamationver=3071400 +pkgver=3.7.14 +pkgrel=2 +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-autoconf-${_amalgamationver}.tar.gz) +options=(!libtool) +md5sums=('6464d429b1396a8db35864e791673b65') +provides=("lib32-sqlite3=$pkgver") +replaces=("lib32-sqlite3") +conflicts=("lib32-sqlite3") + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd ${srcdir}/sqlite-autoconf-${_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 \ + --disable-static + + # 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-autoconf-${_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" +} |