mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 16:12:22 +01:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
# 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"
|