From e46952daad79585b51d76889b1f9e59b9ef47cb8 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Thu, 23 Mar 2017 17:43:25 +0100 Subject: community/lua-resty-http: move from testing --- community/lua-resty-http/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 community/lua-resty-http/APKBUILD (limited to 'community/lua-resty-http/APKBUILD') diff --git a/community/lua-resty-http/APKBUILD b/community/lua-resty-http/APKBUILD new file mode 100644 index 0000000000..9763d297fd --- /dev/null +++ b/community/lua-resty-http/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Jakub Jirutka +# Maintainer: Jakub Jirutka +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" -- cgit v1.2.3