blob: 87affb348b56d8a1bad023808bfc3e055ebf7b19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Cameron Banta <cbanta@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=luajit
pkgver=2.1.0_beta2
_realver=${pkgver/_/-}
pkgrel=0
pkgdesc='Just-in-time compiler and replacement for Lua 5.1 '
url='http://luajit.org'
arch="all"
license="MIT"
makedepends="$depends_dev paxmark"
subpackages="$pkgname-dev $pkgname-doc"
source="http://luajit.org/download/LuaJIT-$_realver.tar.gz"
_builddir=$srcdir/LuaJIT-$_realver
build() {
cd "$_builddir"
make amalg PREFIX=/usr || return 1
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" PREFIX=/usr || return 1
local paxflags="-m"
[ "$CARCH" = "x86" ] && paxflags="-msp"
paxmark "$paxflags" "$pkgdir"/usr/bin/luajit-$_realver || return 1
cd "$pkgdir"/usr/bin && ln -s luajit-$_realver luajit || return 1
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"
|