diff options
Diffstat (limited to 'testing/lua-sqlite3/APKBUILD')
-rw-r--r-- | testing/lua-sqlite3/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/lua-sqlite3/APKBUILD b/testing/lua-sqlite3/APKBUILD new file mode 100644 index 0000000000..935edd32fe --- /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" |