blob: 304dbbfc78a290ecd2aea322b24b38ce1120029f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=lua-redis
_pkgname=redis-lua
_luaversions="5.1 5.2"
pkgver=2.0.4
pkgrel=2
pkgdesc="A Lua client library for the redis key value storage system"
url="https://github.com/nrk/redis-lua"
arch="noarch"
license="MIT"
depends="lua-socket"
depends_dev=""
makedepends="$depends_dev"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/nrk/redis-lua/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage"
done
build() {
:
}
package() {
mkdir -p "$pkgdir"
}
_subpackage() {
local lver="${subpkgname:3:3}"
pkgdesc="$pkgdesc (for Lua $lver)"
depends="lua$lver lua$lver-socket"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
install -Dm644 $builddir/src/redis.lua \
"$subpkgdir"/usr/share/lua/"$lver"/redis.lua
}
md5sums="9fcc177ebb2ce936c178231ba445fb62 lua-redis-2.0.4.tar.gz"
sha256sums="5eb6cb7cd0eda659cef7c231e43cd5f491cbd04804034d1c80134a1604e5cb5e lua-redis-2.0.4.tar.gz"
sha512sums="8e1266601881b0404aa1d771acc486b09a3752f901d4eec04c40912556d2ffe6eb24045d257193c7229fdfa48530a754ce267466f258a9618a30e3ab7ba9e1bc lua-redis-2.0.4.tar.gz"
|