diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-21 20:42:24 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-21 20:42:50 +0100 |
commit | 61a667bdb23946b7a4ee5d1c9fed07a57020ee77 (patch) | |
tree | ce4c11df20dce5d6c347bb94f3c43c11d551e20b | |
parent | b4ceea5ff13928418578479a8edd7ecabfc146a6 (diff) | |
download | aports-61a667bdb23946b7a4ee5d1c9fed07a57020ee77.tar.bz2 aports-61a667bdb23946b7a4ee5d1c9fed07a57020ee77.tar.xz |
testing/lua-resty-http
https://github.com/pintsized/lua-resty-http
Lua HTTP client cosocket driver for OpenResty / ngx_lua
-rw-r--r-- | testing/lua-resty-http/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/lua-resty-http/APKBUILD b/testing/lua-resty-http/APKBUILD new file mode 100644 index 0000000000..9763d297fd --- /dev/null +++ b/testing/lua-resty-http/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=lua-resty-http +pkgver=0.10 +pkgrel=0 +pkgdesc="Lua HTTP client cosocket driver for OpenResty / ngx_lua" +url="https://github.com/pintsized/lua-resty-http" +arch="noarch" +license="BSD2" +subpackages="" +source="$pkgname-$pkgver.tar.gz::https://github.com/pintsized/lua-resty-http/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" +options="!check" + +_luaversions="5.1 5.2 5.3" +for _v in $_luaversions; do + subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage" +done + +package() { + mkdir -p "$pkgdir" +} + +_subpackage() { + local lver="${subpkgname:3:3}" + pkgdesc="$pkgdesc (Lua $lver)" + depends="lua$lver" + install_if="$pkgname=$pkgver-r$pkgrel lua$lver" + + cd "$builddir" + make install DESTDIR="$subpkgdir" LUA_LIB_DIR="/usr/share/lua/$lver" +} + +sha512sums="5ce79bd5e58c09418470fd588670b79610085b61571861c6c9fd71e716c6b599a426e4045431c0e8ab493b5b66d2f851251fc2b0aaed338433619ff3669aab05 lua-resty-http-0.10.tar.gz" |