summaryrefslogtreecommitdiff
path: root/user/lua-filesystem
diff options
context:
space:
mode:
Diffstat (limited to 'user/lua-filesystem')
-rw-r--r--user/lua-filesystem/APKBUILD5
1 files changed, 1 insertions, 4 deletions
diff --git a/user/lua-filesystem/APKBUILD b/user/lua-filesystem/APKBUILD
index f244b935d..11e166311 100644
--- a/user/lua-filesystem/APKBUILD
+++ b/user/lua-filesystem/APKBUILD
@@ -16,18 +16,15 @@ source="$_pkgname-$pkgver.tar.gz::https://github.com/keplerproject/$_pkgname/arc
builddir="$srcdir/$_pkgname-$_pkgver"
build() {
- cd "$builddir"
make CFLAGS="$CFLAGS $(pkg-config lua --cflags) -fPIC"
}
check() {
- cd "$builddir"
LUA_CPATH=./src/?.so lua tests/test.lua
}
package() {
- local rockdir="$pkgdir/usr/lib/luarocks/rocks-5.3/$_pkgname/$_rockver"
- cd "$builddir"
+ rockdir="$pkgdir/usr/lib/luarocks/rocks-5.3/$_pkgname/$_rockver"
make LUA_LIBDIR="$pkgdir/$(pkg-config --variable=INSTALL_CMOD lua)" install
mkdir -p "$rockdir"
echo 'rock_manifest = {}' > "$rockdir"/rock_manifest