aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-sql-mysql
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-01-22 13:11:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-01-22 13:11:54 +0000
commit9e97a17aee3dde6da7a78ab85b5f945a494360b7 (patch)
tree5874c60175009730f390be82191796a0dc3b5015 /main/lua-sql-mysql
parent83b57b63142d01886c9b97e13cf769689cbe52c5 (diff)
downloadaports-9e97a17aee3dde6da7a78ab85b5f945a494360b7.tar.bz2
aports-9e97a17aee3dde6da7a78ab85b5f945a494360b7.tar.xz
main/lua-sql-mysql: upgrade to 2.3.0
Diffstat (limited to 'main/lua-sql-mysql')
-rw-r--r--main/lua-sql-mysql/APKBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/main/lua-sql-mysql/APKBUILD b/main/lua-sql-mysql/APKBUILD
index 7980797efb..1b5f3a5723 100644
--- a/main/lua-sql-mysql/APKBUILD
+++ b/main/lua-sql-mysql/APKBUILD
@@ -1,8 +1,8 @@
-# Maintainer: Natanael Copa <natanael.copa@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-sql-mysql
_name=luasql-mysql
-pkgver=2.1.1
-pkgrel=3
+pkgver=2.3.0
+pkgrel=0
pkgdesc="MySQL driver for LuaSQL (luasql-mysql)"
url="http://www.keplerproject.org/luasql/"
arch="all"
@@ -11,7 +11,7 @@ depends="lua"
makedepends="lua-dev mysql-dev"
install=
subpackages=
-source="http://luaforge.net/frs/download.php/2686/luasql-$pkgver.tar.gz"
+source="saveas-https://github.com/keplerproject/luasql/archive/v$pkgver.tar.gz/luasql-$pkgver.tar.gz"
replaces=luasql-mysql
build() {
@@ -22,12 +22,13 @@ build() {
sed -i -e 's:^\#include "mysql.h":\#include <mysql/mysql.h>:' \
src/ls_mysql.c || return 1
- make CFLAGS="$CFLAGS" T=mysql DRIVER_LIBS="-lmysqlclient" || return 1
+ make CFLAGS="-fPIC $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
+ local _install_cmod=$(pkg-config --variable INSTALL_CMOD lua)
+ install -D src/mysql.so "$pkgdir"/$_install_cmod/luasql/mysql.so
}
-md5sums="63bdd57de4b9d1be336ba112d8cb69eb luasql-2.1.1.tar.gz"
+md5sums="af9f0f3a2313a1fcf88c40700092048d luasql-2.3.0.tar.gz"