aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-resty-string/APKBUILD
blob: a28caf79b699d470f9322185ea5bff8429c3c7d0 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=lua-resty-string
pkgver=0.11
pkgrel=0
pkgdesc="String functions for OpenResty"
url="https://github.com/openresty/lua-resty-string"
arch="noarch !s390x"
license="BSD"
depends="nginx-mod-http-lua"
makedepends=""
checkdepends="perl-utils perl-test-nginx"
source="$pkgname-$pkgver.tar.gz::https://github.com/openresty/$pkgname/archive/v$pkgver.tar.gz
	"
builddir="$srcdir/$pkgname-$pkgver"

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/lua/common
	make DESTDIR="$pkgdir" LUA_LIB_DIR="/usr/share/lua/common" install
}

check() {
	cd "$builddir"
	#make test LUA_LIB_DIR="$builddir/tmp"
}

sha512sums="f1357f5c93a1f0d32f358df2b162e3a2c605cc57ad4e72dd0fdb6a2409f678aa8100f4977d37c717121f629dafb59ab5786982e806f165974f514c34289d92da  lua-resty-string-0.11.tar.gz"