Commit 30bc54bf authored by Natanael Copa's avatar Natanael Copa

main/lua-posix: fix install dir

parent 411733df
...@@ -5,7 +5,7 @@ _luaversions="5.1 5.2" ...@@ -5,7 +5,7 @@ _luaversions="5.1 5.2"
pkgname=lua-posix pkgname=lua-posix
_name=luaposix _name=luaposix
pkgver=5.1.28 pkgver=5.1.28
pkgrel=0 pkgrel=1
pkgdesc="POSIX library for Lua $_luaver" pkgdesc="POSIX library for Lua $_luaver"
url="https://github.com/luaposix/luaposix" url="https://github.com/luaposix/luaposix"
arch="all" arch="all"
...@@ -64,7 +64,8 @@ _split() { ...@@ -64,7 +64,8 @@ _split() {
for d in usr/lib/lua usr/share/lua; do for d in usr/lib/lua usr/share/lua; do
if [ -d "$pkgdir"/$d/$_ver ]; then if [ -d "$pkgdir"/$d/$_ver ]; then
mkdir -p "$subpkgdir"/$d/$_ver mkdir -p "$subpkgdir"/$d/$_ver
mv "$pkgdir"/$d/$_ver/$_f* "$subpkgdir"/$d/ || return 1 mv "$pkgdir"/$d/$_ver/$_f* "$subpkgdir"/$d/$_ver/ \
|| return 1
rmdir "$pkgdir"/$d/$_ver 2>/dev/null || true rmdir "$pkgdir"/$d/$_ver 2>/dev/null || true
fi fi
done done
......
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