aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-turbo/APKBUILD
blob: 9ba1753fcd436cad1e5f63c0f12b410a109c841a (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>

_jitver=$(grep "^pkgver=" ../luajit/APKBUILD)

pkgname=lua-turbo
pkgver=1.1.5
pkgrel=0
pkgdesc="a framework built for LuaJIT 2 and Linux"
url="http://www.turbolua.org/"
arch="all"
license="GPL"
depends="luajit"
depends_dev=""
makedepends="$depends_dev openssl-dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/kernelsauce/turbo/archive/v$pkgver.tar.gz
	fix-bindir.patch
	case-sensitive-url-matching.patch"

_builddir="$srcdir/turbo-$pkgver"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	#pkgver=${pkgver#*=}
	make PREFIX=/usr LUAJIT_VERSION=${_jitver#*=} || return 1
}

package() {
	cd "$_builddir"
	make PREFIX="$pkgdir"/usr \
		LUAJIT_VERSION=${_jitver#*=} install || return 1
}

md5sums="b626b227bb2a47f59dda68d121b47db6  lua-turbo-1.1.5.tar.gz
5fbc1fcf73ef48998a90b06df782162c  fix-bindir.patch
87944005b334730fe2536cd2897c3fba  case-sensitive-url-matching.patch"
sha256sums="bfad7e1e229d2fd95c571b99d645032cd5b8799bd533c310fcadabc7ae181214  lua-turbo-1.1.5.tar.gz
d676d0cd520759f293afdb59e59024a4ad30a8c419ab348e6acc1e72a1bb90a4  fix-bindir.patch
de865aa2c1a0c32088f7eac03521ca71d79a5ea89adedac8cecd99ee5fe67a7e  case-sensitive-url-matching.patch"
sha512sums="86b64b4a65743cc8033611a9500ce59521af936a460a34d8ca94d18caf311c6213c5448d501829399201e1a930f10a707cffd27b4736a220227606fbba9d38ac  lua-turbo-1.1.5.tar.gz
e8ce4427bcf7040fdf3f711a533a0857d9dcf3678334fd4b32917642cb1a5c540ade3d3c8e26bc6b8a7ce0ff6c6f64c92eda70edec3874e7aa3507acb82c2211  fix-bindir.patch
b6154799a70c59b7bddffc1afa296afe1e3ac3c3c6bcdd29a4bfbac61bba1f9f12500ed5d9ee326788033213e749adfb63c1c03625b3c3f0081079a76ab3c9eb  case-sensitive-url-matching.patch"