aboutsummaryrefslogtreecommitdiffstats
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:14 +0200
commitc3c0a589e2574ed83a996f1942745376b1e2e441 (patch)
treee74e772affb02f8a99748e874b71c4ab7c53da58
parent32ddac3d1486e1bdf115790243fc90377dd5ce15 (diff)
downloadaports-c3c0a589e2574ed83a996f1942745376b1e2e441.tar.gz
aports-c3c0a589e2574ed83a996f1942745376b1e2e441.tar.bz2
aports-c3c0a589e2574ed83a996f1942745376b1e2e441.tar.xz
community/lua-say: install minimal rock_manifest
-rw-r--r--community/lua-say/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/community/lua-say/APKBUILD b/community/lua-say/APKBUILD
index 83bbc4d5a0..65f7534e56 100644
--- a/community/lua-say/APKBUILD
+++ b/community/lua-say/APKBUILD
@@ -1,9 +1,10 @@
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-say
+_rockname=say
pkgver=1.3
_pkgver=$pkgver-1
-pkgrel=0
+pkgrel=1
pkgdesc="Lua string hashing library, useful for internationalization"
url="https://github.com/Olivine-Labs/say"
arch="noarch"
@@ -29,9 +30,13 @@ _subpackage() {
pkgdesc="$pkgdesc (for Lua $lver)"
depends="lua$lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_rockname/$_pkgver"
install -m 644 -D "$builddir"/src/init.lua \
"$subpkgdir"/usr/share/lua/$lver/say.lua
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="8d4a360bf0731c2a70c23edb9e6e81cab1e7d9b861aa35103a5c6e521633410860d76c46dc2ea62a06ac8ab3b522bc71c11143d6fe7e26e7fa24dd3f5ea1e5f6 lua-say-1.3.tar.gz"