# Template file for 'lua51-luasocket'
pkgname=lua51-luasocket
version=2.0.2
revision=7
build_style=gnu-makefile
makedepends="lua51-devel"
depends="lua51"
short_desc="Network support for the Lua language"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://w3.impa.br/~diego/software/luasocket/"
distfiles="http://luaforge.net/frs/download.php/2664/luasocket-${version}.tar.gz"
checksum=0e3f277487e7db8c714b07c0dfb1bd934e5242bc786def8b0334e8e1dd82c1fe

do_build() {
	make CC=$CC LD=$CC LUAINC=-I${XBPS_CROSS_BASE}/usr/include/lua5.1 ${makejobs}
}

post_install() {
	vlicense LICENSE
}

luasocket_package() {
	depends="lua51-luasocket>=${version}_${revision}"
	short_desc+=" (transitional dummy package)"
	build_style=meta
}
