diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-04-17 13:54:54 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-04-17 14:08:05 -0300 |
commit | d40d6cc7385888df88ae1802a246c184d54848c6 (patch) | |
tree | 0de3c3943115c79f509d4951bba8a536452d8775 /libre/sqlite-static | |
parent | 481742ffde7d146d69b65c93076205d0912fdd2c (diff) | |
download | abslibre-d40d6cc7385888df88ae1802a246c184d54848c6.tar.gz abslibre-d40d6cc7385888df88ae1802a246c184d54848c6.tar.bz2 abslibre-d40d6cc7385888df88ae1802a246c184d54848c6.zip |
sqlite-static: add new package to [libre]
Diffstat (limited to 'libre/sqlite-static')
-rw-r--r-- | libre/sqlite-static/PKGBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libre/sqlite-static/PKGBUILD b/libre/sqlite-static/PKGBUILD new file mode 100644 index 000000000..af7d7025c --- /dev/null +++ b/libre/sqlite-static/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> +# based of sqlite + +pkgbase="sqlite" +pkgname=sqlite +_srcver=3120100 +pkgver=3.12.1 +pkgrel=1 +pkgdesc="A C library that implements an SQL database engine (static libraries only)" +arch=('i686' 'x86_64' 'armv7h') +license=('custom:Public Domain') +url="http://www.sqlite.org/" +makedepends=('tcl' 'readline') +source=(http://www.sqlite.org/2016/sqlite-src-${_srcver}.zip) +options=('!emptydirs' '!makeflags' 'staticlibs') # json extensions breaks parallel build +sha1sums=('f3f76c0f07a37e085eb504460a5663bcff53b6ad') + +prepare() { + cd sqlite-src-$_srcver +# autoreconf -vfi +} + +build() { + export CPPFLAGS="$CPPFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 \ + -DSQLITE_ENABLE_UNLOCK_NOTIFY \ + -DSQLITE_ENABLE_DBSTAT_VTAB=1 \ + -DSQLITE_ENABLE_FTS3_TOKENIZER=1 \ + -DSQLITE_SECURE_DELETE" + + # build sqlite + cd sqlite-src-$_srcver + ./configure --prefix=/usr \ + --enable-static \ + --disable-amalgamation \ + --enable-fts3 \ + --enable-fts4 \ + --enable-fts5 \ + --enable-rtree \ + --enable-json1 \ + TCLLIBDIR=/usr/lib/sqlite$pkgver + make + # build additional tools + make showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer +} + +package() { + + pkgdesc="A C library that implements an SQL database engine (static libraries only)" + depends=('sqlite') + + cd sqlite-src-$_srcver + make DESTDIR=${pkgdir} install + + # remove conflicting files + rm -vr ${pkgdir}/usr/{bin,include,lib/{pkgconfig,sqlite*}} + rm -v ${pkgdir}/usr/lib/lib*.so* +} |