25 lines
795 B
Bash
25 lines
795 B
Bash
# Template file for 'luasec'
|
|
pkgname=luasec
|
|
version=0.7
|
|
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.eu>"
|
|
license="MIT"
|
|
homepage="https://github.com/brunoos/luasec"
|
|
distfiles="https://github.com/brunoos/luasec/archive/${pkgname}-${version}.tar.gz"
|
|
checksum=2176e95b1d2a72a3235ede5d2aa9838050feee55dade8fdbde4be7fdc66f3a31
|
|
|
|
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
|
|
}
|