void-packages/srcpkgs/luasec/template

26 lines
798 B
Bash

# Template file for 'luasec'
pkgname=luasec
version=0.8.1
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-makefile
hostmakedepends="lua"
makedepends="lua-devel libressl-devel"
depends="lua"
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/${pkgname}-${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
}