aboutsummaryrefslogtreecommitdiffstats
path: root/main/pllua
diff options
context:
space:
mode:
authorTuan M. Hoang <tmhoang@flatglobe.org>2018-06-01 05:52:58 +0000
committerJakub Jirutka <jakub@jirutka.cz>2018-06-21 18:50:54 +0200
commit01d2e158ccfaae20cf4b17fdd625dda31f699c16 (patch)
treeca3f5812b47a4eb973a64319deba33934fd717b1 /main/pllua
parent54f6029e04df3079fbd27f3631e793162618f326 (diff)
downloadaports-01d2e158ccfaae20cf4b17fdd625dda31f699c16.tar.bz2
aports-01d2e158ccfaae20cf4b17fdd625dda31f699c16.tar.xz
main/pllua: use lua instead of luajit on s390x
Committer notes: I've changed lua5.1 to lua5.3 and fixed parameters for pkgconf.
Diffstat (limited to 'main/pllua')
-rw-r--r--main/pllua/APKBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/main/pllua/APKBUILD b/main/pllua/APKBUILD
index d354ac8bae..f658ec243d 100644
--- a/main/pllua/APKBUILD
+++ b/main/pllua/APKBUILD
@@ -2,13 +2,18 @@
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=pllua
pkgver=1.1.0
-pkgrel=0
+pkgrel=1
pkgdesc="Procedural language for PostgreSQL using Lua"
url="https://github.com/pllua/pllua"
-arch="all !s390x" # s390x: luajit is not avail
+arch="all"
license="GPL"
depends="postgresql"
-makedepends="postgresql-dev luajit-dev"
+# LuaJIT does not support s390x.
+case "$CARCH" in
+ s390x) _lua=lua5.3;;
+ *) _lua=luajit;;
+esac
+makedepends="postgresql-dev $_lua-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/pllua/$pkgname/archive/v$pkgver.tar.gz
fix-on-32bit.patch
fix-postgres10.patch"
@@ -17,8 +22,9 @@ options="!check" # tests require running PostgreSQL
build() {
cd "$builddir"
- make LUA_INCDIR=$(pkgconf --variable=includedir luajit) \
- LUALIB=$(pkgconf --libs luajit) \
+
+ make LUA_INCDIR=$(pkgconf --variable=includedir $_lua) \
+ LUALIB=$(pkgconf --libs $_lua) \
USE_PGXS=1
}