void-packages/srcpkgs/lua51-luasec/template

27 lines
847 B
Bash
Raw Normal View History

2016-03-08 19:23:29 +00:00
# Template file for 'lua51-luasec'
pkgname=lua51-luasec
version=0.5.1
2016-03-08 19:44:47 +00:00
revision=2
2016-03-08 19:23:29 +00:00
wrksrc=${pkgname#*-}-${pkgname#*-}-${version}
build_style=gnu-makefile
2016-03-08 19:44:47 +00:00
hostmakedepends="lua51"
2016-03-08 19:23:29 +00:00
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() {
2016-03-08 19:44:47 +00:00
lua src/options.lua -g ${XBPS_CROSS_BASE}/usr/include/openssl/ssl.h > src/options.h
2016-03-08 19:23:29 +00:00
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
}