void-packages/srcpkgs/lua53-luasec/template

31 lines
937 B
Bash

# Template file for 'lua53-luasec'
pkgname=lua53-luasec
version=0.8.1
revision=3
wrksrc="luasec-luasec-${version}"
build_style=gnu-makefile
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 \
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
}