aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-resty-http/APKBUILD
blob: 09e48a81d27df472203e374ee71b6cfabf0a61e4 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-resty-http
pkgver=0.14
pkgrel=0
pkgdesc="Lua HTTP client cosocket driver for OpenResty / ngx_lua"
url="https://github.com/pintsized/lua-resty-http"
arch="noarch"
license="BSD-2-Clause"
depends="lua"
provides=""
source="$pkgname-$pkgver.tar.gz::https://github.com/pintsized/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
options="!check"  # FIXME: tests require OpenResty and additional dependencies

for _v in 5.1 5.2 5.3; do
	provides="$provides lua$_v-${pkgname#lua-}=$pkgver-r$pkgrel"  # for backward compatibility
done

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir" LUA_LIB_DIR="/usr/share/lua/common"

	echo 'rock_manifest = {}' > rock_manifest
	install -D -m 644 rock_manifest \
		"$pkgdir"/usr/lib/luarocks/rocks-common/$pkgname/$pkgver-1
}

sha512sums="acb0b6d647e938cbaf66245d4124999ee6f739565e1194f722f694e13a3bca28b3c5a405741ca97c41002bb2fbb596ab00e9d1ddccec3ef529622d5f5fae2ccc  lua-resty-http-0.14.tar.gz"