diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-05 23:59:38 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-06 00:00:26 +0200 |
commit | 0caaefee739ef2d2cc3cc7d62f2513171c69892b (patch) | |
tree | d371ff1de239e7bf8fa087a553d53440515d3c68 /community/lua-fun/APKBUILD | |
parent | 24faebb909098017140596a38370cc39009fb304 (diff) | |
download | aports-0caaefee739ef2d2cc3cc7d62f2513171c69892b.tar.bz2 aports-0caaefee739ef2d2cc3cc7d62f2513171c69892b.tar.xz |
community/lua-fun: move from testing
Diffstat (limited to 'community/lua-fun/APKBUILD')
-rw-r--r-- | community/lua-fun/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community/lua-fun/APKBUILD b/community/lua-fun/APKBUILD new file mode 100644 index 0000000000..3154a2777a --- /dev/null +++ b/community/lua-fun/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Michael Zuo <muh.muhten@gmail.com> +# Maintainer: Michael Zuo <muh.muhten@gmail.com> +pkgname=lua-fun +_pkgname=luafun +pkgver=0.1.3 +pkgrel=1 +pkgdesc="Functional programming library" +url="http://rtsisyk.github.io/luafun/" +arch="noarch" +license="MIT" +depends="" +makedepends="" +source="$pkgname-$pkgver.tar.gz::https://github.com/rtsisyk/$_pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +_luaversions="5.1 5.2 5.3" +for _v in $_luaversions; do + makedepends="$makedepends lua$_v-dev" + subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage" +done + +package() { + mkdir -p "$pkgdir" +} + +_subpackage() { + local lver="${subpkgname:3:3}" + pkgdesc="$pkgdesc for Lua $lver" + depends="lua$lver" + install_if="$pkgname=$pkgver-r$pkgrel lua$lver" + + cd "$builddir" + install -m 644 -D fun.lua "$subpkgdir"/usr/share/lua/$lver/fun.lua +} + +md5sums="ab774af3d0dea06656039e5fc3ee86ad lua-fun-0.1.3.tar.gz" +sha256sums="b17a139e94a150595ffce09e800035f71fe9e0631b54b6fbf193dfe57255e4b7 lua-fun-0.1.3.tar.gz" +sha512sums="1959c22453a6f431e4f4ee1ca1e6001c126f8857e00b128e5303049fd574150a68b71490503356f11fefcbd0ef7fbac7b0ae7c182a395ad0c92d2047dfac0662 lua-fun-0.1.3.tar.gz" |