blob: 4c72793486415863d4e28b78c5bb9d7f40a5c67d (
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
|
# Maintainer: Biggs <biggs@sergeantbiggs.net>
# Contributor: Kazuki Sawada <kazuki@6715.jp>
# Contributor: raingloom <raingloom42@gmail.com>
pkgname=openresty_luarocks
_pkgname=luarocks
pkgver=3.11.1
pkgrel=3
pkgdesc="Deployment and management system for Openresty Luajit 2.1 modules"
arch=('any')
url="http://luarocks.org/"
license=('MIT')
depends=('openresty'
'coreutils' # need chmod, md5sum
'curl' # need one of curl or wget
'lua'
'unzip' # need unzip and zip or lua-zlib
'zip')
optdepends=('cvs: for fetching sources from CVS repositories'
'git: for fetching sources from git repositories'
'mercurial: for fetching sources from mercurial repositories'
'cmake: for building rocks that use the cmake build system'
'lua-sec: HTTPS support')
source=("https://luarocks.org/releases/$_pkgname-$pkgver.tar.gz"{,.asc})
b2sums=('9470b0cd01329e223769b53a5aea743916c2ffedd6171a0b06e105131e2475ec4919fc1e6347162d1049ae5b2d9b32bea705e35577e58edaa29dddb910d343e7'
'SKIP')
validpgpkeys=('8460980B2B79786DE0C7FCC83FD8F43C2BB3C478')
build() {
cd "$srcdir/$_pkgname-$pkgver"
./configure --prefix=/opt/openresty/luajit \
--with-lua=/opt/openresty/luajit/ \
--lua-suffix=jit \
--force-config \
--lua-version=5.1 \
--with-lua-include=/opt/openresty/luajit/include/luajit-2.1
make build
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
|