diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-08 08:17:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-08 11:12:01 +0000 |
commit | 246b199340fb27870c902720a9ecd21d1f5cb290 (patch) | |
tree | 3ee5cb2ebbebf16654f4f3897b1a7f7fe7b9e7d5 /main/lua-filesystem/APKBUILD | |
parent | 18d1cb5dde72658fcb91eb21864b5c22b44f0cab (diff) | |
download | aports-246b199340fb27870c902720a9ecd21d1f5cb290.tar.bz2 aports-246b199340fb27870c902720a9ecd21d1f5cb290.tar.xz |
main/lua-filesystem: add replaces
also use eval to define the split functions dynamically
Diffstat (limited to 'main/lua-filesystem/APKBUILD')
-rw-r--r-- | main/lua-filesystem/APKBUILD | 8 |
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" |