blob: c9adf49ff7f1e6b3e04cd87dc0a4d828e93fc714 (
plain) (
tree)
|
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=lua-sec
pkgver=0.8.1
pkgrel=0
pkgdesc="TLS/SSL Support for Lua"
url="https://github.com/brunoos/luasec/wiki"
arch="all"
options="!check" # no tests
license="MIT"
depends="lua5.3 lua-socket"
makedepends="lua5.3-dev openssl-dev"
subpackages="$pkgname-doc"
source="luasec-$pkgver.tar.gz::https://github.com/brunoos/luasec/archive/luasec-$pkgver.tar.gz"
builddir="$srcdir/luasec-luasec-$pkgver"
build() {
make linux INC_PATH="$(pkg-config --cflags lua)" LD="${CC:-gcc}"
}
package() {
make \
LUAPATH="$pkgdir"/usr/share/lua/5.3 \
LUACPATH="$pkgdir"/usr/lib/lua/5.3 \
install
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
cp -r samples "$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="982bddc0ee725220625e645f7497592671578ed33960c2c2e6f556d6236a15da65be7d7359552e616882900669540fb0a0ee4eb60a052d54265a6f752e84e8ff luasec-0.8.1.tar.gz"
|