aboutsummaryrefslogtreecommitdiffstats
path: root/main/luajit/APKBUILD
diff options
context:
space:
mode:
authorGustavo Romero <gromero@br.ibm.com>2017-03-30 18:51:55 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-03-31 15:44:10 +0000
commitc820a2039106e520d88353f487834af46b6a1c7e (patch)
treec4a6b39c959136281301e56979cc3fe5cbf6492a /main/luajit/APKBUILD
parent53f3b73d03dab8a5bac7174a2a20e67e1c82c708 (diff)
downloadaports-c820a2039106e520d88353f487834af46b6a1c7e.tar.gz
aports-c820a2039106e520d88353f487834af46b6a1c7e.tar.bz2
aports-c820a2039106e520d88353f487834af46b6a1c7e.tar.xz
main/luajit: enable support for ppc64le
Enable support for ppc64le and change _builddir to builddir so default_prepare can apply the patch by itself.
Diffstat (limited to 'main/luajit/APKBUILD')
-rw-r--r--main/luajit/APKBUILD20
1 files changed, 10 insertions, 10 deletions
diff --git a/main/luajit/APKBUILD b/main/luajit/APKBUILD
index 15c0a3ae15..9e23c49fcf 100644
--- a/main/luajit/APKBUILD
+++ b/main/luajit/APKBUILD
@@ -7,21 +7,22 @@ _realver=${pkgver/_/-}
pkgrel=2
pkgdesc='Just-in-time compiler and replacement for Lua 5.1 '
url='http://luajit.org'
-arch="all !s390x !ppc64le"
+arch="all !s390x"
license="MIT"
makedepends="$depends_dev paxmark"
subpackages="$pkgname-dev $pkgname-doc"
-source="http://luajit.org/download/LuaJIT-$_realver.tar.gz"
-
-_builddir=$srcdir/LuaJIT-$_realver
+source="http://luajit.org/download/LuaJIT-$_realver.tar.gz
+ enable-support-for-ppc64le.patch"
+
+builddir=$srcdir/LuaJIT-$_realver
build() {
- cd "$_builddir"
+ cd "$builddir"
make amalg PREFIX=/usr || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make install DESTDIR="$pkgdir" PREFIX=/usr || return 1
local paxflags="-m"
@@ -30,10 +31,9 @@ package() {
cd "$pkgdir"/usr/bin && ln -s luajit-$_realver luajit || return 1
- install -Dm644 "$_builddir"/COPYRIGHT \
+ install -Dm644 "$builddir"/COPYRIGHT \
$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
}
-md5sums="fa14598d0d775a7ffefb138a606e0d7b LuaJIT-2.1.0-beta2.tar.gz"
-sha256sums="713924ca034b9d99c84a0b7b701794c359ffb54f8e3aa2b84fad52d98384cf47 LuaJIT-2.1.0-beta2.tar.gz"
-sha512sums="ef04db5bee66a6e24da8d488df2c035c9593792dca4cb49955d673281a7c7b00ab40f4a63e699959461da7fb0732cf81ec46808c33b66ae1eaca4ef94d0b61e3 LuaJIT-2.1.0-beta2.tar.gz"
+sha512sums="ef04db5bee66a6e24da8d488df2c035c9593792dca4cb49955d673281a7c7b00ab40f4a63e699959461da7fb0732cf81ec46808c33b66ae1eaca4ef94d0b61e3 LuaJIT-2.1.0-beta2.tar.gz
+f9823c3a5091338961e1e70a47e30d0d3e592cdf8d085405d3201a1739cb1ebaaca02eec8ee9a88eab3d80466f5f4227a847553b15f9dbb209fe789ae3b37b67 enable-support-for-ppc64le.patch"