2015-06-12 15:28:47 +00:00
|
|
|
# Template file for 'luaposix51'
|
|
|
|
pkgname=luaposix51
|
|
|
|
version=5.1.28
|
2015-06-17 10:14:46 +00:00
|
|
|
revision=3
|
2015-06-12 15:28:47 +00:00
|
|
|
lib32disabled=yes
|
|
|
|
wrksrc="luaposix-release-v${version}"
|
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--libdir=/usr/lib/lua/5.1 --datadir=/usr/share/lua/5.1"
|
2015-06-17 10:14:46 +00:00
|
|
|
hostmakedepends="perl lua51-devel automake libtool"
|
2015-06-12 15:28:47 +00:00
|
|
|
makedepends="ncurses-devel lua51-devel"
|
2015-06-12 15:45:18 +00:00
|
|
|
depends="lua51 lua51-BitOp"
|
2015-06-12 15:28:47 +00:00
|
|
|
short_desc="A POSIX library for Lua programming language"
|
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
|
|
|
homepage="http://luaforge.net/projects/luaposix/"
|
|
|
|
distfiles="https://github.com/luaposix/luaposix/archive/release-v${version}.tar.gz"
|
|
|
|
checksum=d82a322cb93d25ef16ba2cbab79f6fa1d94806249542d771c2c89a5f9cc4345f
|
|
|
|
|
2015-06-17 10:14:46 +00:00
|
|
|
make_build_args="INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/lua5.1"
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# Fix Cross
|
|
|
|
sed -i 's/AX_LUA_HEADERS/#AX_LUA_HEADERS/' configure.ac
|
|
|
|
|
|
|
|
autoreconf -i
|
|
|
|
}
|
|
|
|
|
2015-06-12 15:28:47 +00:00
|
|
|
post_install() {
|
|
|
|
vmkdir usr/share/$pkgname/examples
|
|
|
|
vcopy "*.lua" usr/share/$pkgname/examples
|
|
|
|
}
|