aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-12-04 08:41:25 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-01-14 20:14:24 +0000
commit3d4b5d87dc883bf3c9695355e291b8b2b8702401 (patch)
tree6787490a7686f1a4c9fb5fb485b0bf0f46a5683e
parent52b5be29ca2218565d0af8463f9d590d4d8601c4 (diff)
downloadaports-3d4b5d87dc883bf3c9695355e291b8b2b8702401.tar.gz
aports-3d4b5d87dc883bf3c9695355e291b8b2b8702401.tar.bz2
aports-3d4b5d87dc883bf3c9695355e291b8b2b8702401.tar.xz
community/*: add lua5.4 support
-rw-r--r--community/lua-bitop/APKBUILD6
-rw-r--r--community/lua-cqueues-pushy/APKBUILD36
-rw-r--r--community/lua-fun/APKBUILD4
-rw-r--r--community/lua-hiredis/APKBUILD28
4 files changed, 28 insertions, 46 deletions
diff --git a/community/lua-bitop/APKBUILD b/community/lua-bitop/APKBUILD
index e673d3c919..b7e615fc4a 100644
--- a/community/lua-bitop/APKBUILD
+++ b/community/lua-bitop/APKBUILD
@@ -1,7 +1,7 @@
# Contributor:
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-pkgname="lua-bitop"
-pkgver="1.0.2"
+pkgname=lua-bitop
+pkgver=1.0.2
pkgrel=0
pkgdesc="Bitwise operations on numbers"
url="https://bitop.luajit.org/"
@@ -10,7 +10,7 @@ license="MIT"
source="https://bitop.luajit.org/download/LuaBitOp-$pkgver.tar.gz"
builddir="$srcdir/LuaBitOp-$pkgver"
-_luaversions="5.1 5.2 5.3"
+_luaversions="5.1 5.2 5.3 5.4"
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage"
diff --git a/community/lua-cqueues-pushy/APKBUILD b/community/lua-cqueues-pushy/APKBUILD
index a10081dc6d..669e9b9642 100644
--- a/community/lua-cqueues-pushy/APKBUILD
+++ b/community/lua-cqueues-pushy/APKBUILD
@@ -1,37 +1,29 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
-_luaversions="5.2 5.3"
+_luaversions="5.2 5.3 5.4"
pkgname=lua-cqueues-pushy
pkgver=0.20180530
_commitid=5c4dc58a83490e18e977d880ca7cdee5ec5e70e5
-pkgrel=0
+pkgrel=1
pkgdesc="Framework for logic control (based on cqueues)"
url="https://github.com/rameplayerorg/lua-cqueues-pushy"
arch="all"
-license="GPL-2.0"
-install=""
-depends=""
+license="GPL-2.0-only"
makedepends="linux-headers"
-subpackages=""
-for _i in $_luaversions; do
- makedepends="$makedepends lua$_i-dev"
- subpackages="$subpackages lua$_i-cqueues-pushy:split_${_i/./_}"
-done
-source="$pkgname-$pkgver.tar.gz::https://github.com/rameplayerorg/$pkgname/archive/$_commitid.tar.gz
+source="$pkgname-$pkgver.tar.gz::https://github.com/rameplayerorg/lua-cqueues-pushy/archive/$_commitid.tar.gz
cqpushy.initd
"
-_sdir="$srcdir"/$pkgname-$_commitid
+builddir="$srcdir"/$pkgname-$_commitid
+
+for _i in $_luaversions; do
+ makedepends="$makedepends lua$_i-dev"
+ subpackages="$subpackages lua$_i-cqueues-pushy:split_${_i/./_}"
+done
prepare() {
- local i
- cd "$_srcdir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare
for _v in $_luaversions; do
- cp -r "$_sdir" "$srcdir"/build-$_v
+ cp -r "$builddir" "$srcdir"/build-$_v
done
}
@@ -45,10 +37,10 @@ build() {
package() {
for _v in $_luaversions; do
cd "$srcdir"/build-$_v
- make LUA_VERSION=$_v install DESTDIR="$pkgdir" || return 1
+ make LUA_VERSION=$_v install DESTDIR="$pkgdir"
done
install -m755 -D "$srcdir"/cqpushy.initd \
- "$pkgdir"/etc/init.d/cqpushy || return 1
+ "$pkgdir"/etc/init.d/cqpushy
}
_split() {
diff --git a/community/lua-fun/APKBUILD b/community/lua-fun/APKBUILD
index db61815f04..f67be10ede 100644
--- a/community/lua-fun/APKBUILD
+++ b/community/lua-fun/APKBUILD
@@ -4,7 +4,7 @@ pkgname=lua-fun
_rockname=fun
_pkgname=luafun
pkgver=0.1.3
-pkgrel=9
+pkgrel=10
pkgdesc="Functional programming library"
url="https://rtsisyk.github.io/luafun/"
arch="noarch"
@@ -14,7 +14,7 @@ checkdepends="luajit"
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"
+_luaversions="5.1 5.2 5.3 5.4"
for _v in $_luaversions; do
checkdepends="$checkdepends lua$_v"
provides="$provides lua$_v-${pkgname#lua-}=$pkgver-r$pkgrel" # for backward compatibility
diff --git a/community/lua-hiredis/APKBUILD b/community/lua-hiredis/APKBUILD
index 67db9da22d..2afdc6b5b5 100644
--- a/community/lua-hiredis/APKBUILD
+++ b/community/lua-hiredis/APKBUILD
@@ -1,17 +1,20 @@
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
-_luaversions="5.1 5.2 5.3"
+_luaversions="5.1 5.2 5.3 5.4"
pkgname=lua-hiredis
pkgver=0.2.1
-pkgrel=4
+pkgrel=5
pkgdesc="Binding to hiredis for Lua"
+options="!check" # No testsuite
url="https://github.com/agladysh/lua-hiredis"
arch="all"
license="MIT"
-depends_dev=""
-makedepends="$depends_dev hiredis-dev"
-subpackages=""
+makedepends="hiredis-dev"
+source="lua-hiredis-$pkgver.tar.gz::https://github.com/agladysh/lua-hiredis/archive/v$pkgver.tar.gz
+ 0002-lua-hiredis-master.patch
+ 0003-lua-5-2-compatibility.patch
+ 0004-lua-5-3-compatibility.patch"
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
@@ -19,19 +22,11 @@ for _v in $_luaversions; do
eval "split_${_v/./_}() { _split $_v; }"
done
-install=""
-source="lua-hiredis-$pkgver.tar.gz::https://github.com/agladysh/lua-hiredis/archive/v$pkgver.tar.gz
- 0002-lua-hiredis-master.patch
- 0003-lua-5-2-compatibility.patch
- 0004-lua-5-3-compatibility.patch"
-builddir="$srcdir"/lua-hiredis-$pkgver
-
build() {
- cd "$builddir"
local _v
for _v in $_luaversions; do
mkdir -p "$srcdir/build-$_v/"
- ${CC:-gcc} src/lua-hiredis.c ${CFLAGS} -shared -fPIC \
+ ${CC:-gcc} src/lua-hiredis.c $CFLAGS -shared -fPIC \
$(pkg-config --cflags hiredis lua$_v) \
$(pkg-config --libs hiredis lua$_v) \
-I/usr/include/lua$_ver -I/usr/include/hiredis \
@@ -39,11 +34,6 @@ build() {
done
}
-check() {
- # No check functionality yet
- return 0
-}
-
package() {
mkdir -p "$pkgdir"
}