diff options
| author | Michael Pirogov <vbnet.ru@gmail.com> | 2020-01-14 19:24:39 +0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-14 18:33:21 +0100 |
| commit | 8b5c83e863e49e5d200e5339b9ec4fab16e3a42d (patch) | |
| tree | c72c122b2060952371f5f7449603c186b9c6928c /testing/lua-resty-core | |
| parent | 2aeacc584fec26c2be13c944c58cde13b15033f7 (diff) | |
| download | aports-8b5c83e863e49e5d200e5339b9ec4fab16e3a42d.tar.bz2 aports-8b5c83e863e49e5d200e5339b9ec4fab16e3a42d.tar.xz | |
testing/lua-resty-core: new aport
Diffstat (limited to 'testing/lua-resty-core')
| -rw-r--r-- | testing/lua-resty-core/APKBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/lua-resty-core/APKBUILD b/testing/lua-resty-core/APKBUILD new file mode 100644 index 0000000000..83992e9640 --- /dev/null +++ b/testing/lua-resty-core/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Michael Pirogov <vbnet.ru@gmail.com> +# Maintainer: Michael Pirogov <vbnet.ru@gmail.com> +pkgname=lua-resty-core +pkgver=0.1.17 +pkgrel=0 +pkgdesc="New FFI-based API for lua-nginx-module" +url="https://github.com/openresty/lua-resty-core" +arch="noarch" +license="BSD-2-Clause" +depends="lua" +source="$pkgname-$pkgver.tar.gz::https://github.com/openresty/lua-resty-core/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="76313f33d3a5c3d5ba1ba202b6b6b02ad8155f6f25a55504ded14228263930b7049baf7475f72156b7192af66d20a7ea5d36b3561e4335c746d5baa5ba03b2ba lua-resty-core-0.1.17.tar.gz" |
