void-packages/srcpkgs/luasec/template
2019-08-17 19:23:34 +02:00

25 lines
798 B
Bash

# Template file for 'luasec'
pkgname=luasec
version=0.7.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=3dfc7ef3c20e3d57b1ff3aaee93e73e828cfb58cc92ad261c5fd08d08fedf7d1
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
}