From d40d6cc7385888df88ae1802a246c184d54848c6 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Sun, 17 Apr 2016 13:54:54 -0300 Subject: sqlite-static: add new package to [libre] --- libre/sqlite-static/PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 libre/sqlite-static/PKGBUILD 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 +# 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* +} -- cgit v1.2.3-54-g00ecf