summaryrefslogtreecommitdiff
path: root/user/lua-filesystem/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-10 02:33:18 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-10 02:33:18 +0000
commit8ec380b058bc73a57abb13eadf6ddde5fc19a1cd (patch)
treefebcc83b7b6cfb08d1a7b3d43dc482b82fb165eb /user/lua-filesystem/APKBUILD
parent7533214e45198ddbb7aa71d47e545aef8d82a8e3 (diff)
downloadpackages-8ec380b058bc73a57abb13eadf6ddde5fc19a1cd.tar.gz
packages-8ec380b058bc73a57abb13eadf6ddde5fc19a1cd.tar.bz2
packages-8ec380b058bc73a57abb13eadf6ddde5fc19a1cd.tar.xz
packages-8ec380b058bc73a57abb13eadf6ddde5fc19a1cd.zip
user/*: Modernise / fix syntax / metadata / deps
Diffstat (limited to 'user/lua-filesystem/APKBUILD')
-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