diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-22 20:01:06 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-22 20:02:15 +0200 |
commit | 3bc921aac8eeeb07f7c706507b030ad44f5f93f5 (patch) | |
tree | a7178f2f17db7b9d2f7f17f5eca01a8326490c8a /main/lua-optarg | |
parent | 292be74e1dbc26886793b0941c3ff2c16036aefc (diff) | |
download | aports-3bc921aac8eeeb07f7c706507b030ad44f5f93f5.tar.bz2 aports-3bc921aac8eeeb07f7c706507b030ad44f5f93f5.tar.xz |
main/lua-optarg: install minimal rock_manifest
Diffstat (limited to 'main/lua-optarg')
-rw-r--r-- | main/lua-optarg/APKBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/lua-optarg/APKBUILD b/main/lua-optarg/APKBUILD index df25f2fdcc..f025cf848f 100644 --- a/main/lua-optarg/APKBUILD +++ b/main/lua-optarg/APKBUILD @@ -1,7 +1,8 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lua-optarg +_rockname=optarg pkgver=0.2 -pkgrel=0 +pkgrel=1 pkgdesc="Simple command line option parser for Lua" url="https://github.com/ncopa/lua-optarg" arch="noarch" @@ -24,9 +25,13 @@ _package() { pkgdesc="$pkgdesc $lver" depends="lua$lver" install_if="$pkgname=$pkgver-r$pkgrel lua$lver" + local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_rockname/$pkgver-1" install -Dm644 "$builddir"/optarg.lua \ "$subpkgdir"/usr/share/lua/$lver/optarg.lua + + mkdir -p "$rockdir" + echo 'rock_manifest = {}' > "$rockdir"/rock_manifest } sha512sums="347d958020a3fbd7a0ba553eccc3ba54f0732636e6a880bd254065ae9634b6a9397b0e4f48a720a0597672da62652ec6998c455f2719622ae6e9c06896e5c573 lua-optarg-0.2.tar.gz" |