summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/lua-sql-mysql/APKBUILD (renamed from main/luasql-mysql/APKBUILD)10
1 files changed, 8 insertions, 2 deletions
diff --git a/main/luasql-mysql/APKBUILD b/main/lua-sql-mysql/APKBUILD
index 42f5d7604..669ad205f 100644
--- a/main/luasql-mysql/APKBUILD
+++ b/main/lua-sql-mysql/APKBUILD
@@ -1,8 +1,9 @@
# Maintainer: Natanael Copa <natanael.copa@gmail.com>
-pkgname=luasql-mysql
+pkgname=lua-sql-mysql
+_name=luasql-mysql
pkgver=2.1.1
pkgrel=0
-pkgdesc="MySQL driver for LuaSQL"
+pkgdesc="MySQL driver for LuaSQL (luasql-mysql)"
url="http://www.keplerproject.org/luasql/"
license="MIT"
depends="lua"
@@ -10,6 +11,7 @@ makedepends="lua-dev mysql-dev"
install=
subpackages=
source="http://luaforge.net/frs/download.php/2686/luasql-$pkgver.tar.gz"
+replaces=luasql-mysql
build() {
cd "$srcdir"/luasql-$pkgver
@@ -20,6 +22,10 @@ build() {
src/ls_mysql.c || return 1
make CFLAGS="$CFLAGS" T=mysql DRIVER_LIBS="-lmysqlclient" || return 1
+}
+
+package() {
+ cd "$srcdir"/luasql-$pkgver
install -D src/mysql.so "$pkgdir"/usr/lib/lua/5.1/luasql/mysql.so
}