aboutsummaryrefslogtreecommitdiffstats
path: root/main/luajit/APKBUILD
blob: a4fa728d9461151e3f43695972d06bfd6b9ad7fb (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
# Maintainer: Cameron Banta <cbanta@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>

pkgname=luajit
pkgver=2.0.4
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-$pkgver.tar.gz"

_builddir=$srcdir/LuaJIT-$pkgver

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-$pkgver || return 1

	install -Dm644 "$_builddir"/COPYRIGHT \
	               $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
}

md5sums="dd9c38307f2223a504cbfb96e477eca0  LuaJIT-2.0.4.tar.gz"
sha256sums="620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746beef1807d  LuaJIT-2.0.4.tar.gz"
sha512sums="a72957bd85d8f457269e78bf08c19b28c5707df5d19920d61918f8a6913f55913ce13037fb9a6463c04cefde0c6644739f390e09d656e4bbc2c236927aa3f8f9  LuaJIT-2.0.4.tar.gz"