void-packages/srcpkgs/tolua/template

29 lines
726 B
Bash

# Template file for 'tolua'
pkgname=tolua
version=5.2.0
revision=3
build_style=cmake
hostmakedepends="pkg-config"
makedepends="lua52-devel"
short_desc="Tool that greatly simplifies the integration of C/C++ code with Lua"
maintainer="Antonio Malcolm <antonio@antoniomalcolm.com>"
license="custom:as-is"
homepage="https://github.com/LuaDist/tolua"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=121ae6b6e1fb86d064e5994be5ef43ee2e20d2602f40e6ba48fa9de867ffc3d5
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2 -fPIC"
nopie=yes
post_install() {
vlicense README
}
tolua-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/include"
}
}