aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-gversion
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:01:05 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:02:14 +0200
commit8a0ec432ba6ed3ceddc696ee420124352daa1a36 (patch)
treea8609e5e1e02eb92981648e771725632b90f8aa1 /main/lua-gversion
parentaef29aa00e4edb6f204bf5e8a82d6af0d121637f (diff)
downloadaports-8a0ec432ba6ed3ceddc696ee420124352daa1a36.tar.bz2
aports-8a0ec432ba6ed3ceddc696ee420124352daa1a36.tar.xz
main/lua-gversion: install minimal rock_manifest
Diffstat (limited to 'main/lua-gversion')
-rw-r--r--main/lua-gversion/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/lua-gversion/APKBUILD b/main/lua-gversion/APKBUILD
index e1f7c1b89a..c2c071dbe3 100644
--- a/main/lua-gversion/APKBUILD
+++ b/main/lua-gversion/APKBUILD
@@ -1,9 +1,10 @@
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-gversion
+_rockname=gversion
_pkgname=gversion.lua
pkgver=0.2.0
-pkgrel=0
+pkgrel=1
pkgdesc="Lua library for Gentoo-style versioning format"
url="https://github.com/jirutka/gversion.lua"
arch="noarch"
@@ -29,9 +30,13 @@ _package() {
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-1"
install -m 644 -D "$builddir"/src/gversion.lua \
"$subpkgdir"/usr/share/lua/$lver/gversion.lua
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
md5sums="c01c9619c3b82d597e3a71093ca1c40c lua-gversion-0.2.0.tar.gz"