void-packages/srcpkgs/lua52-luasec/template

28 lines
909 B
Bash
Raw Normal View History

2016-03-09 12:36:01 +01:00
# Template file for 'lua52-luasec'
pkgname=lua52-luasec
version=0.6
2016-03-25 22:35:48 +01:00
revision=3
2016-03-09 12:36:01 +01:00
wrksrc=${pkgname#*-}-${pkgname#*-}-${version}
build_style=gnu-makefile
hostmakedepends="lua52"
makedepends="lua52-devel libressl-devel"
depends="lua52"
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=cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d
do_build() {
lua src/options.lua -g ${XBPS_CROSS_BASE}/usr/include/openssl/ssl.h > src/options.h
2016-03-09 23:15:38 +01:00
make linux CC=$CC LD=$CC INC_PATH=-I${XBPS_CROSS_BASE}/usr/include \
LIB_PATH=-L${XBPS_CROSS_BASE}/usr/lib
2016-03-09 12:36:01 +01:00
}
pre_install() {
2016-03-09 23:15:38 +01:00
export LUAPATH=${DESTDIR}/usr/share/lua/5.2
export LUACPATH=${DESTDIR}/usr/lib/lua/5.2
2016-03-09 12:36:01 +01:00
vlicense LICENSE
}