diff options
| author | Michael Pirogov <vbnet.ru@gmail.com> | 2020-01-14 19:13:31 +0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-14 17:18:43 +0100 |
| commit | f83f27b01594ea49e121bf64db09dfb7dc8fc807 (patch) | |
| tree | b7be890d34390da079475b801977256ab47a0bcd /testing/lua-resty-redis | |
| parent | a056a69a344f21b45f6c0be3c4e988f658c9be4c (diff) | |
| download | aports-f83f27b01594ea49e121bf64db09dfb7dc8fc807.tar.bz2 aports-f83f27b01594ea49e121bf64db09dfb7dc8fc807.tar.xz | |
testing/lua-resty-redis: new aport
Diffstat (limited to 'testing/lua-resty-redis')
| -rw-r--r-- | testing/lua-resty-redis/APKBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/lua-resty-redis/APKBUILD b/testing/lua-resty-redis/APKBUILD new file mode 100644 index 0000000000..8ca520daf2 --- /dev/null +++ b/testing/lua-resty-redis/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Michael Pirogov <vbnet.ru@gmail.com> +# Maintainer: Michael Pirogov <vbnet.ru@gmail.com> +pkgname=lua-resty-redis +pkgver=0.27 +pkgrel=0 +pkgdesc="Lua redis client driver for the ngx_lua based on the cosocket API" +url="https://github.com/openresty/lua-resty-redis" +arch="noarch" +license="BSD-2-Clause" +depends="lua" +source="$pkgname-$pkgver.tar.gz::https://github.com/openresty/lua-resty-redis/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="cb4fb5b5bb903c8740ac5ae75960f786039406a7e9c671c758cb25aa2fc8fdfcac351db4b2aefe73f28fd89a110b85b6ef4b9c6642ae2983f67d371c99f41bd3 lua-resty-redis-0.27.tar.gz" |
