# Contributor: Michael Pirogov # Maintainer: Michael Pirogov 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"