aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-resty-http/APKBUILD
blob: 141d28c94cfb5622699f6c82183b6a41d2386cdd (plain) (blame)
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.13
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="dde9e164c4f99523c5eca660e93baf7e610cab20cfb786a804354c4eedc151b230d67cb3878e9fe104fd6bd2fc0066942218dfd4518ebe81c5deadbea83b48d5  lua-resty-http-0.13.tar.gz"