blob: 96b6360bb5d5e27b1007b8afbc050c898c31a0d3 (
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
|
pkgname=luajit-openresty
pkgver=2.1.20200102.r34.g31116c4d
pkgrel=1
pkgdesc='Just-in-time compiler and drop-in replacement for Lua (openresty fork)'
arch=('i686' 'x86_64')
url='http://luajit.org/'
license=('MIT')
depends=('gcc-libs')
conflicts=('luajit')
provides=('luajit')
source=(git+https://github.com/openresty/luajit2.git#branch=v2.1-agentzh)
sha1sums=('SKIP')
pkgver() {
cd $srcdir/luajit2
git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $srcdir/luajit2
make amalg PREFIX=/usr
}
package() {
cd $srcdir/luajit2
make install DESTDIR=$pkgdir PREFIX=/usr
install -Dm644 COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
install -Dm755 src/luajit $pkgdir/usr/bin/luajit
}
|