aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-filesystem
diff options
context:
space:
mode:
Diffstat (limited to 'main/lua-filesystem')
-rw-r--r--main/lua-filesystem/APKBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/lua-filesystem/APKBUILD b/main/lua-filesystem/APKBUILD
index 079f115e6d..786479a89d 100644
--- a/main/lua-filesystem/APKBUILD
+++ b/main/lua-filesystem/APKBUILD
@@ -5,7 +5,7 @@ _defaultlua="5.1"
pkgname=lua-filesystem
pkgver=1.6.2
-pkgrel=1
+pkgrel=2
pkgdesc="Filesystem functions for Lua"
url="http://www.keplerproject.org/luafilesystem/"
arch="all"
@@ -51,6 +51,7 @@ package() {
_split() {
local d= _ver=$1
pkgdesc="Filesystem functions for Lua $_ver"
+ replaces="$pkgname"
for d in usr/lib/lua usr/share/lua; do
if [ -d "$pkgdir"/$d/$_ver ]; then
mkdir -p "$subpkgdir"/$d
@@ -59,7 +60,8 @@ _split() {
done
}
-split_5_1() { _split 5.1; }
-split_5_2() { _split 5.2; }
+for _i in $_luaversions; do
+ eval "split_${_i/./_}() { _split $_i; }"
+done
md5sums="4e7ec93678c760c4e42cea7d28aafa13 luafilesystem-1.6.2.tar.gz"