blob: c5cc2585a4439e555a187d9d018b85a18b2dc687 (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=lua-turbo
pkgver=1.1
pkgrel=1
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"
_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"
make PREFIX=/usr LUAJIT_VERSION=2.0.3 || return 1
}
package() {
cd "$_builddir"
make PREFIX="$pkgdir"/usr \
LUAJIT_VERSION=2.0.3 install || return 1
}
md5sums="2224ced034263710e4d3e77ed3cb3671 lua-turbo-1.1.tar.gz
5fbc1fcf73ef48998a90b06df782162c fix-bindir.patch"
sha256sums="35427a613e517ddb8b5a7964bba46b13482543bc1ba733d8f9026a56886351dc lua-turbo-1.1.tar.gz
d676d0cd520759f293afdb59e59024a4ad30a8c419ab348e6acc1e72a1bb90a4 fix-bindir.patch"
sha512sums="232998411ccc67f3d13916861a1bfe893229625a645f8f9daa8834a33a22206bff759a62edb14a0c6cfaabead0ba71d07c5b9b80e393b3658c8aa564f362422c lua-turbo-1.1.tar.gz
e8ce4427bcf7040fdf3f711a533a0857d9dcf3678334fd4b32917642cb1a5c540ade3d3c8e26bc6b8a7ce0ff6c6f64c92eda70edec3874e7aa3507acb82c2211 fix-bindir.patch"
|