summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-05-17 07:42:50 +0000
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-05-17 07:50:06 +0000
commit4bcd5a5957944a393e078261d9bbae8595d00ea3 (patch)
treecae09863f50f636190cae33e77f09e8f030bf515
parent696c10b8957b7ced1a3a20337346b95ea7cef52c (diff)
downloadaports-4bcd5a5957944a393e078261d9bbae8595d00ea3.tar.bz2
aports-4bcd5a5957944a393e078261d9bbae8595d00ea3.tar.xz
testing/lua-sqlite3: package added
-rw-r--r--testing/lua-sqlite3/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/lua-sqlite3/APKBUILD b/testing/lua-sqlite3/APKBUILD
new file mode 100644
index 000000000..935edd32f
--- /dev/null
+++ b/testing/lua-sqlite3/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+# Maintainer:
+pkgname=lua-sqlite3
+pkgver=0.8
+_vertag=svn08
+pkgrel=0
+pkgdesc="Sqlite3 wrapper for Lua"
+url=http://lua.sqlite.org/
+arch=all
+license=BSD
+makedepends="lua-dev pkgconfig sqlite-dev"
+_zipname=lsqlite3_$_vertag.zip?uuid=svn_8
+source=$url/index.cgi/zip/$_zipname
+
+_builddir=$srcdir/lsqlite3_$_vertag
+prepare() {
+ cd "$srcdir"
+ unzip "$_zipname"
+
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir/$i" || return 1;;
+ esac
+ done
+}
+
+build() {
+ make -C "$_builddir"
+}
+
+package() {
+ cd "$_builddir"
+ local dir=$pkgdir/usr/lib/lua/5.1
+ install -d "$dir"
+ install lsqlite3.so "$dir"
+}
+
+md5sums="0e0164091eb361110e057d01f2e6a006 lsqlite3_svn08.zip?uuid=svn_8"