summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-10-25 14:39:27 +0800
committerChocobo12017-10-25 17:08:06 +0800
commit2d2ebf9d083ab62b458699d82d8afdd5394430b4 (patch)
treef2c9aee17fedaf40349abab7fe1d7126e7dfbae3
downloadaur-2d2ebf9d083ab62b458699d82d8afdd5394430b4.tar.gz
newpkg: sqlite-fossil r19569.1e30f47-1
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD71
2 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..76a8ee3e2c4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = sqlite-fossil
+ pkgdesc = Self-contained, high-reliability, embedded, full-featured, public-domain, SQL database engine
+ pkgver = r19569.1e30f47
+ pkgrel = 1
+ url = https://www.sqlite.org/
+ arch = i686
+ arch = x86_64
+ license = custom:Public Domain
+ makedepends = fossil
+ makedepends = tcl
+ makedepends = readline
+ depends = glibc
+ provides = sqlite
+ conflicts = sqlite
+ options = staticlibs
+ source = license::https://git.archlinux.org/svntogit/packages.git/plain/trunk/license.txt?h=packages/sqlite
+ sha256sums = SKIP
+
+pkgname = sqlite-fossil
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0c9ecf4e8d7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,71 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=sqlite-fossil
+pkgver=r19569.1e30f47
+pkgrel=1
+pkgdesc="Self-contained, high-reliability, embedded, full-featured, public-domain, SQL database engine"
+arch=('i686' 'x86_64')
+url="https://www.sqlite.org/"
+license=('custom:Public Domain')
+depends=('glibc')
+makedepends=('fossil' 'tcl' 'readline')
+provides=('sqlite')
+conflicts=('sqlite')
+options=('staticlibs')
+source=("license::https://git.archlinux.org/svntogit/packages.git/plain/trunk/license.txt?h=packages/sqlite")
+sha256sums=('SKIP')
+
+
+prepare() {
+ mkdir -p "sqlite"
+ cd "sqlite"
+
+ fossil clone https://www.sqlite.org/src sqlite.fossil
+ fossil open sqlite.fossil
+}
+
+pkgver() {
+ cd "sqlite"
+
+ _hash=$(fossil info | sed -n 's/checkout: *\([0-9a-z]*\).*/\1/p' | cut -c 1-7)
+ _revision=$(fossil info | sed -n 's/check-ins: *\(.*\)/\1/p')
+ printf "r%s.%s" "$_revision" "$_hash"
+}
+
+build() {
+ cd "sqlite"
+
+ 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 \
+ -DSQLITE_MAX_VARIABLE_NUMBER=250000 \
+ -DSQLITE_MAX_EXPR_DEPTH=10000"
+ ./configure --prefix="/usr" \
+ --disable-amalgamation \
+ --enable-fts3 --enable-fts4 --enable-fts5 --enable-rtree --enable-json1
+ make
+ make showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
+}
+
+check() {
+ cd "sqlite"
+
+ #make test
+}
+
+package() {
+ cd "sqlite"
+
+ make DESTDIR="$pkgdir" install
+ install -m755 showdb showjournal showstat4 showwal sqldiff "$pkgdir/usr/bin/"
+
+ install -Dm644 "$srcdir/license" "$pkgdir/usr/share/licenses/sqlite/license"
+
+ install -m755 -d "$pkgdir/usr/share/man/man1"
+ install -m644 sqlite*.1 "$pkgdir/usr/share/man/man1/"
+
+ # remove tcl extension
+ rm -r "$pkgdir/usr/lib"/tcl*
+}