aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-02 08:11:15 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 08:29:49 -0300
commit48eff4fddeebc7659f47edc9b821f6f9396d93c0 (patch)
treeb075d3e67e052a2d3a07e81efa671095f4881eca
parentaea4c7749feec0d487c324a775f32fe74eff6c9e (diff)
downloadaports-48eff4fddeebc7659f47edc9b821f6f9396d93c0.tar.gz
aports-48eff4fddeebc7659f47edc9b821f6f9396d93c0.tar.bz2
aports-48eff4fddeebc7659f47edc9b821f6f9396d93c0.tar.xz
main/lua-feedparser: enable luajit on s390x and fix license=
-rw-r--r--main/lua-feedparser/APKBUILD21
1 files changed, 6 insertions, 15 deletions
diff --git a/main/lua-feedparser/APKBUILD b/main/lua-feedparser/APKBUILD
index 270f49169e..e058599139 100644
--- a/main/lua-feedparser/APKBUILD
+++ b/main/lua-feedparser/APKBUILD
@@ -2,22 +2,17 @@
pkgname=lua-feedparser
_rockname=feedparser
pkgver=0.71
-pkgrel=1
+pkgrel=2
pkgdesc="A decent RSS and Atom XML feed parser"
url="https://github.com/slact/lua-feedparser"
arch="noarch"
-license="BSD"
+license="BSD-3-Clause"
depends="lua lua-expat"
+checkdepends="luajit"
+source="$pkgname-$pkgver.tar.gz::https://github.com/slact/lua-feedparser/archive/$pkgver.tar.gz"
+
provides="$pkgname-common=$pkgver-r$pkgrel" # for backward compatibility
replaces="$pkgname-common" # for backward compatibility
-source="$pkgname-$pkgver.tar.gz::https://github.com/slact/$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
@@ -26,9 +21,7 @@ for _v in $_luaversions; do
done
check() {
- cd "$builddir"
-
- local lver; for lver in $_luaversions $_luajit; do
+ local lver; for lver in $_luaversions jit; do
msg "Testing on Lua $lver"
make test LUA_BIN=lua$lver
done
@@ -38,8 +31,6 @@ package() {
local lmod_dir="$pkgdir/usr/share/lua/common"
local rockdir="$pkgdir/usr/lib/luarocks/rocks-common/$_rockname/$pkgver-3"
- cd "$builddir"
-
mkdir -p "$lmod_dir"
make LUA_DIR="$lmod_dir" install