diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2019-06-25 21:06:22 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2019-06-25 21:08:21 +0200 |
commit | 6516b3e65ef38e1595ec6d984eb8b7f11b1896b8 (patch) | |
tree | 567d1a625a17db377a958b88a414b237e1b9dfc8 /testing/lua-lut/APKBUILD | |
parent | e692eeab986c948ce9f3d9a6632155b8ca7b2e4d (diff) | |
download | aports-6516b3e65ef38e1595ec6d984eb8b7f11b1896b8.tar.bz2 aports-6516b3e65ef38e1595ec6d984eb8b7f11b1896b8.tar.xz |
testing/lua-lut: new aport
Diffstat (limited to 'testing/lua-lut/APKBUILD')
-rw-r--r-- | testing/lua-lut/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/lua-lut/APKBUILD b/testing/lua-lut/APKBUILD new file mode 100644 index 0000000000..1cb8187e6a --- /dev/null +++ b/testing/lua-lut/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=lua-lut +_rockname=lut +pkgver=1.2.1 +pkgrel=0 +pkgdesc="Lubyk base module for Lua" +url="http://doc.lubyk.org/lut.html" +arch="noarch" +license="MIT" +depends="lua lua-lub" +provides="" +source="https://github.com/lubyk/$_rockname/archive/REL-$pkgver/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_rockname-REL-$pkgver" + +for _v in 5.1 5.2 5.3; do + provides="$provides lua$_v-$_rockname=$pkgver-r$pkgrel" +done + +package() { + local rockdir="$pkgdir/usr/lib/luarocks/rocks-common/$_rockname/$pkgver-1" + + mkdir -p "$pkgdir"/usr/share/lua/common + cp -r "$builddir"/lut "$pkgdir"/usr/share/lua/common/ + + mkdir -p "$rockdir" + echo 'rock_manifest = {}' > "$rockdir"/rock_manifest +} + +sha512sums="594ab28778abf0ccf35859f082b0555a17c0c1265d0f2f097fad5dda012c8087b2175500896a0dfb82683e6dca6c6662ccf5badb9162423313e2b60b971c8212 lua-lut-1.2.1.tar.gz" |