aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-optparse/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:01:04 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:02:13 +0200
commit9e1c17e0111e844920b2ce55e1551664ed1afbb1 (patch)
tree53d97945c3bf39db9e2eab4d87e115d9f977dc02 /community/lua-optparse/APKBUILD
parenta13de36ba9a52ff6e3762c31c83cbd1580fcd597 (diff)
downloadaports-9e1c17e0111e844920b2ce55e1551664ed1afbb1.tar.bz2
aports-9e1c17e0111e844920b2ce55e1551664ed1afbb1.tar.xz
community/lua-optparse: install minimal rock_manifest
Diffstat (limited to 'community/lua-optparse/APKBUILD')
-rw-r--r--community/lua-optparse/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/lua-optparse/APKBUILD b/community/lua-optparse/APKBUILD
index 40179ee16a..93a1d42751 100644
--- a/community/lua-optparse/APKBUILD
+++ b/community/lua-optparse/APKBUILD
@@ -3,7 +3,7 @@
pkgname=lua-optparse
_pkgname=optparse
pkgver=1.2
-pkgrel=0
+pkgrel=1
pkgdesc="Parse and process command-line options"
url="https://github.com/gvvaughan/optparse"
arch="noarch"
@@ -28,10 +28,14 @@ _subpackage() {
depends="lua$lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
local lmod_dir="$subpkgdir/usr/share/lua/$lver"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$pkgver-1"
cd "$builddir"
mkdir -p "$lmod_dir"
cp -r "$builddir"/lib/* "$lmod_dir"/
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="65d5a2a0ad05b1f43fdfe28cbc84aa9eb718d0691da24ad23a92f6ca18da29b68107cbdb1c27d45d9b0aeec01f2ed8bd6755b692db40bb871865690f49a018c9 lua-optparse-1.2.tar.gz"