aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-08-01 09:00:46 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-08-10 04:40:19 +0000
commiteddfa8e1df680b4caa523e4cc49ee7b8c1accc92 (patch)
treea4ca0ddf2de61546defb383a72c491e45cab498b
parentf79714ece43028aa85fff924a8ed16387aa4199b (diff)
downloadaports-eddfa8e1df680b4caa523e4cc49ee7b8c1accc92.tar.gz
aports-eddfa8e1df680b4caa523e4cc49ee7b8c1accc92.tar.bz2
aports-eddfa8e1df680b4caa523e4cc49ee7b8c1accc92.tar.xz
community/lua-turbo: rebuild against luajit-2.2.0
-rw-r--r--community/lua-turbo/APKBUILD23
1 files changed, 5 insertions, 18 deletions
diff --git a/community/lua-turbo/APKBUILD b/community/lua-turbo/APKBUILD
index 6850a11fa8..7d6d09f80f 100644
--- a/community/lua-turbo/APKBUILD
+++ b/community/lua-turbo/APKBUILD
@@ -2,10 +2,9 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lua-turbo
-_jitver=2.1.0-beta3
pkgver=2.1.3
-pkgrel=4
-pkgdesc="a framework built for LuaJIT 2 and Linux"
+pkgrel=5
+pkgdesc="framework built for LuaJIT 2 and Linux"
url="https://github.com/kernelsauce/turbo"
arch="all"
license="Apache-2.0"
@@ -25,17 +24,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/kernelsauce/turbo/archive/v$
builddir="$srcdir/turbo-$pkgver"
prepare() {
- cd "$builddir"
default_prepare
- # check if we are using the current luajit version
- if [ -r ../../../../main/luajit/APKBUILD ]; then
- local _currentjit=$(grep "^_compatver=" ../../../../main/luajit/APKBUILD)
- if [ "${_currentjit#*=}" != "$_jitver" ]; then
- die "luajit version does not match: ${_currentjit#*=} != $_jitver !"
- fi
- else
- die "cannot locate luajit APKBUILD!"
- fi
# we need to fix the loading of libssl.
local _soname=$(scanelf --nobanner --soname /usr/lib/libssl.so | awk '{print $2}')
sed -i -e \
@@ -44,17 +33,15 @@ prepare() {
}
build() {
- cd "$builddir"
- export LUAJIT_VERSION="${_jitver/_/-}"
+ export LUAJIT_VERSION="$(pkgconf luajit --variable=version)"
make
}
package() {
- cd "$builddir"
make PREFIX="$pkgdir"/usr install
- install -Dm 755 "$srcdir"/${pkgname}.initd \
+ install -Dm 755 "$srcdir"/$pkgname.initd \
$pkgdir/etc/init.d/$pkgname
- install -Dm 644 "$srcdir"/${pkgname}.confd \
+ install -Dm 644 "$srcdir"/$pkgname.confd \
$pkgdir/etc/conf.d/$pkgname
# we use luajit only
rm -rf "$pkgdir/usr/share/lua"