aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2021-11-13 00:28:46 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2021-11-13 00:28:46 +0000
commit8a952a1dd2a23afd71688e22a3280b8e70b70a38 (patch)
treedaf5578227b665d8d2f3770a861511cea62c3b07
parent867f299a31143cad986823b70f3b15b06bc54d65 (diff)
downloadaports-8a952a1dd2a23afd71688e22a3280b8e70b70a38.tar.gz
aports-8a952a1dd2a23afd71688e22a3280b8e70b70a38.tar.bz2
aports-8a952a1dd2a23afd71688e22a3280b8e70b70a38.tar.xz
community/lua-turbo: fix luajit version number lookup
install luajit-dev which provides pkgconf .pc file
-rw-r--r--community/lua-turbo/APKBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/community/lua-turbo/APKBUILD b/community/lua-turbo/APKBUILD
index 6ce6126820..e6e8554f71 100644
--- a/community/lua-turbo/APKBUILD
+++ b/community/lua-turbo/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=lua-turbo
pkgver=2.1.3
-pkgrel=7
+pkgrel=8
pkgdesc="framework built for LuaJIT 2 and Linux"
url="https://github.com/kernelsauce/turbo"
# riscv64 blocked by luajit
@@ -11,7 +11,10 @@ license="Apache-2.0"
depends="luajit lua5.1-cjson lua5.1-sec ca-certificates"
subpackages="$pkgname-openrc"
# https://github.com/kernelsauce/turbo/issues/343 (libressl-dev)
-makedepends="openssl1.1-compat-dev"
+makedepends="
+ openssl1.1-compat-dev
+ luajit-dev
+ "
options="!check" # bundled tests dont work
source="$pkgname-$pkgver.tar.gz::https://github.com/kernelsauce/turbo/archive/v$pkgver.tar.gz
$pkgname.initd
@@ -34,6 +37,7 @@ prepare() {
build() {
export LUAJIT_VERSION="$(pkgconf luajit --variable=version)"
+ [ -z "$LUAJIT_VERSION" ] && die "LUAJIT_VERSION cannot be empty"
make
}