diff options
-rw-r--r-- | main/lua-gversion/APKBUILD | 7 |
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" |