void-packages/srcpkgs/lua53-luasec/template

35 lines
1.1 KiB
Bash

# Template file for 'lua53-luasec'
pkgname=lua53-luasec
version=0.8.1
revision=4
wrksrc="luasec-luasec-${version}"
build_style=gnu-makefile
make_build_args="LUAPATH=/usr/share/lua/5.3 LUACPATH=/usr/lib/lua/5.3"
make_install_args="${make_build_args}"
hostmakedepends="lua53"
makedepends="lua53-devel libressl-devel"
depends="lua53"
short_desc="Lua binding for OpenSSL library to provide TLS/SSL communication"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="MIT"
homepage="https://github.com/brunoos/luasec"
distfiles="https://github.com/brunoos/luasec/archive/luasec-${version}.tar.gz"
checksum=cc9fc92df3be56add5c9687319951f457c31f5d12ac19cfc09d53056dc24f04e
do_build() {
lua src/options.lua -g ${XBPS_CROSS_BASE}/usr/include/openssl/ssl.h > src/options.h
make linux CC=$CC LD=$CC \
INC_PATH="-I${XBPS_CROSS_BASE}/usr/include -I${XBPS_CROSS_BASE}/usr/include/lua5.3" \
LIB_PATH=-L${XBPS_CROSS_BASE}/usr/lib
}
pre_install() {
vlicense LICENSE
}
luasec_package() {
depends="lua53-luasec>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
build_style=meta
}