Commit 246b1993 authored by Natanael Copa's avatar Natanael Copa

main/lua-filesystem: add replaces

also use eval to define the split functions dynamically
parent 18d1cb5d
......@@ -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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment