void-packages/srcpkgs/lua51-luasec/template
2018-03-04 08:07:17 +00:00

27 lines
861 B
Bash

# Template file for 'lua51-luasec'
pkgname=lua51-luasec
reverts=0.6_1
version=0.5.1
revision=7
wrksrc=${pkgname#*-}-${pkgname#*-}-${version}
build_style=gnu-makefile
hostmakedepends="lua51"
makedepends="lua51-devel libressl-devel"
depends="lua51"
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=6d5c5f8e0521f3194668d9a839774e079e2fd5c45b15538dc7b8cacc56719406
replaces="luasec<=0.5.1_1"
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
}
post_install() {
vlicense LICENSE
}