ptrcnull 8483267129
community/*: remove empty variable declarations
[AL5]:variable set to empty string
2022-02-16 21:52:10 +01:00

27 lines
1003 B
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-resty-http
pkgver=0.16.1
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"
source="$pkgname-$pkgver.tar.gz::https://github.com/pintsized/$pkgname/archive/v$pkgver.tar.gz"
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() {
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="34a9333083c5691b4163123e4e2cfbf2fb6f00b8517528e0778cb2a77ac24cacbe1b1a8978cf133b30863b1a89774e675f6a31152f0c7bb78e58ab500d03774d lua-resty-http-0.16.1.tar.gz"