aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-sql
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-06 11:08:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-06 11:08:38 +0000
commitd04f8adcec6bf97bb4e4b5f769bd787708e1b4c7 (patch)
tree5dab40c19f9fdc3f1e87c30d792d8dcb737aed0e /main/lua-sql
parentef41e80032d26ca0f052f9eaec4c995efa06356f (diff)
downloadaports-d04f8adcec6bf97bb4e4b5f769bd787708e1b4c7.tar.bz2
aports-d04f8adcec6bf97bb4e4b5f769bd787708e1b4c7.tar.xz
main/lua-sql: add lua 5.3 and use install_if
Diffstat (limited to 'main/lua-sql')
-rw-r--r--main/lua-sql/APKBUILD15
1 files changed, 4 insertions, 11 deletions
diff --git a/main/lua-sql/APKBUILD b/main/lua-sql/APKBUILD
index 30c59e7f36..120c4a3b0f 100644
--- a/main/lua-sql/APKBUILD
+++ b/main/lua-sql/APKBUILD
@@ -1,13 +1,13 @@
# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-_luaversions="5.1 5.2"
+_luaversions="5.1 5.2 5.3"
_drivers="mysql postgres sqlite3 odbc"
pkgname=lua-sql
pkgver=2.3.0
-pkgrel=2
+pkgrel=3
pkgdesc="Lua SQL drivers"
-url="http://www.keplerproject.org/luasql/"
+url="http://keplerproject.github.io/luasql/doc/us/"
arch="all"
license="MIT"
depends=""
@@ -87,11 +87,9 @@ package() {
_split() {
local d= _ver=$1 _driver=$2
pkgdesc="Lua $_ver SQL driver for $2"
+ install_if="lua$_ver lua-sql-$_driver=$pkgver-r$pkgrel"
depends=
replaces=
- if [ "$_ver" = "5.1" ]; then
- replaces="lua-sql-$_driver"
- fi
mkdir -p "$subpkgdir"/usr/lib/lua/$_ver/luasql
mv "$pkgdir"/usr/lib/lua/$_ver/luasql/$_driver.so \
"$subpkgdir"/usr/lib/lua/$_ver/luasql/ || return 1
@@ -103,13 +101,8 @@ for _i in $_luaversions; do
done
done
for _j in $_drivers; do
- _deps=
- for _i in $_luaversions; do
- _deps="$_deps lua${_i}-sql-${_j}"
- done
eval "split_$_j() {
pkgdesc=\"Lua SQL drivers for $_j\";
- depends=\"$_deps\";
mkdir -p \"$subpkgdir\";
}"
done