From 63e95f2b70a14bd747f4853341a1fa78130e2b42 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 21 Jul 2017 15:44:23 +0200 Subject: community/lua-fifo: move from testing --- community/lua-fifo/APKBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++ testing/lua-fifo/APKBUILD | 51 --------------------------------------------- 2 files changed, 51 insertions(+), 51 deletions(-) create mode 100644 community/lua-fifo/APKBUILD delete mode 100644 testing/lua-fifo/APKBUILD diff --git a/community/lua-fifo/APKBUILD b/community/lua-fifo/APKBUILD new file mode 100644 index 0000000000..6685e15496 --- /dev/null +++ b/community/lua-fifo/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Jakub Jirutka +# Maintainer: Jakub Jirutka +pkgname=lua-fifo +_pkgname=fifo.lua +pkgver=0.2 +pkgrel=0 +pkgdesc="FIFO library for Lua" +url="https://github.com/daurnimator/fifo.lua" +arch="noarch" +license="MIT" +checkdepends="lua-busted" +subpackages="" +source="$pkgname-$pkgver.tar.gz::https://github.com/daurnimator/$_pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +# luajit is not available for selected arches +case "$CARCH" in + s390x) _luajit="";; + *) checkdepends="$checkdepends luajit" _luajit="jit";; +esac + +_luaversions="5.1 5.2 5.3" +for _v in $_luaversions; do + subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage" + checkdepends="$checkdepends lua$_v" +done + +check() { + cd "$builddir" + + local lver; for lver in $_luaversions $_luajit; do + msg "Testing on lua$lver" + lua$lver /usr/bin/busted + done +} + +package() { + mkdir -p "$pkgdir" +} + +_subpackage() { + local lver="${subpkgname:3:3}" + pkgdesc="$pkgdesc $lver" + depends="lua$lver" + install_if="$pkgname=$pkgver-r$pkgrel lua$lver" + + cd "$builddir" + install -D -m 644 fifo.lua "$subpkgdir"/usr/share/lua/$lver/fifo.lua +} + +sha512sums="db2e0d2117c70ab0daa6e83141b95f198689e6568aab51e8300ca5577c1a517de249b9514ad8a3476239da3d9bceb699726ead913126817c0801f7ec5d419306 lua-fifo-0.2.tar.gz" diff --git a/testing/lua-fifo/APKBUILD b/testing/lua-fifo/APKBUILD deleted file mode 100644 index 6685e15496..0000000000 --- a/testing/lua-fifo/APKBUILD +++ /dev/null @@ -1,51 +0,0 @@ -# Contributor: Jakub Jirutka -# Maintainer: Jakub Jirutka -pkgname=lua-fifo -_pkgname=fifo.lua -pkgver=0.2 -pkgrel=0 -pkgdesc="FIFO library for Lua" -url="https://github.com/daurnimator/fifo.lua" -arch="noarch" -license="MIT" -checkdepends="lua-busted" -subpackages="" -source="$pkgname-$pkgver.tar.gz::https://github.com/daurnimator/$_pkgname/archive/$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -# luajit is not available for selected arches -case "$CARCH" in - s390x) _luajit="";; - *) checkdepends="$checkdepends luajit" _luajit="jit";; -esac - -_luaversions="5.1 5.2 5.3" -for _v in $_luaversions; do - subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage" - checkdepends="$checkdepends lua$_v" -done - -check() { - cd "$builddir" - - local lver; for lver in $_luaversions $_luajit; do - msg "Testing on lua$lver" - lua$lver /usr/bin/busted - done -} - -package() { - mkdir -p "$pkgdir" -} - -_subpackage() { - local lver="${subpkgname:3:3}" - pkgdesc="$pkgdesc $lver" - depends="lua$lver" - install_if="$pkgname=$pkgver-r$pkgrel lua$lver" - - cd "$builddir" - install -D -m 644 fifo.lua "$subpkgdir"/usr/share/lua/$lver/fifo.lua -} - -sha512sums="db2e0d2117c70ab0daa6e83141b95f198689e6568aab51e8300ca5577c1a517de249b9514ad8a3476239da3d9bceb699726ead913126817c0801f7ec5d419306 lua-fifo-0.2.tar.gz" -- cgit v1.2.3