diff options
-rw-r--r-- | main/lua-sql-sqlite3/APKBUILD (renamed from main/luasql-sqlite3/APKBUILD) | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/luasql-sqlite3/APKBUILD b/main/lua-sql-sqlite3/APKBUILD index 6cd89c8f0d..ff740b4fed 100644 --- a/main/luasql-sqlite3/APKBUILD +++ b/main/lua-sql-sqlite3/APKBUILD @@ -1,5 +1,5 @@ # Maintainer: Natanael Copa <natanael.copa@gmail.com> -pkgname=luasql-sqlite3 +pkgname=lua-sql-sqlite3 pkgver=2.1.1 pkgrel=0 pkgdesc="LuaSQL driver for sqlite3" @@ -10,11 +10,15 @@ makedepends="lua-dev sqlite-dev" install= subpackages= source="http://luaforge.net/frs/download.php/2686/luasql-$pkgver.tar.gz" +replaces=luasql-sqlite3 build() { cd "$srcdir"/luasql-$pkgver - make CFLAGS="$CFLAGS" T=sqlite3 DRIVER_LIBS="-lsqlite3" || return 1 +} + +package() { + cd "$srcdir"/luasql-$pkgver install -D src/sqlite3.so "$pkgdir"/usr/lib/lua/5.1/luasql/sqlite3.so } |