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

pkgname=luajit
pkgver=2.0.0
pkgrel=0
pkgdesc='Just-in-time compiler and replacement for Lua 5.1 '
url='http://luajit.org'
arch="all"
license="MIT"
makedepends="$depends_dev"
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

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

md5sums="97a2b87cc0490784f54b64cfb3b8f5ad  LuaJIT-2.0.0.tar.gz"