2011-06-28 16:35:32 +00:00
|
|
|
# Template file for 'lua'
|
|
|
|
pkgname=lua
|
2015-03-19 07:30:20 +00:00
|
|
|
version=5.2.4
|
|
|
|
revision=1
|
|
|
|
build_pie=yes
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="ncurses-devel readline-devel"
|
2013-10-10 09:04:26 +00:00
|
|
|
short_desc="Powerful, fast, lightweight, embeddable scripting language"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-06-28 16:35:32 +00:00
|
|
|
homepage="http://www.lua.org"
|
|
|
|
license="MIT"
|
2013-10-10 09:04:26 +00:00
|
|
|
distfiles="http://www.lua.org/ftp/$pkgname-$version.tar.gz"
|
2015-03-19 07:30:20 +00:00
|
|
|
checksum=b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b
|
2011-06-28 16:35:32 +00:00
|
|
|
|
2012-02-22 04:40:52 +00:00
|
|
|
do_build() {
|
2014-01-03 16:36:00 +00:00
|
|
|
sed "s/%VER%/${version%.*}/g;s/%REL%/${version}/g" ${FILESDIR}/lua.pc > lua.pc
|
2013-10-10 09:30:16 +00:00
|
|
|
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" \
|
|
|
|
CC="$CC" RANLIB="$RANLIB" \
|
2013-03-10 09:36:13 +00:00
|
|
|
INSTALL_DATA="cp -d" LUA_SO=liblua.so ${makejobs} linux
|
2011-06-28 16:35:32 +00:00
|
|
|
}
|
|
|
|
|
2012-02-22 04:40:52 +00:00
|
|
|
do_install() {
|
2011-06-28 16:35:32 +00:00
|
|
|
make INSTALL_DATA="cp -d" INSTALL_TOP="${DESTDIR}/usr" \
|
2014-01-03 16:36:00 +00:00
|
|
|
TO_LIB="liblua.a liblua.so liblua.so.${version%.*} liblua.so.${version}" \
|
2011-06-28 16:35:32 +00:00
|
|
|
INSTALL_MAN="${DESTDIR}/usr/share/man/man1" install
|
2013-10-10 09:04:26 +00:00
|
|
|
|
|
|
|
vinstall lua.pc 644 usr/lib/pkgconfig
|
2011-06-28 16:35:32 +00:00
|
|
|
|
|
|
|
# Install the documentation
|
2013-10-10 09:04:26 +00:00
|
|
|
vmkdir usr/share/doc/lua
|
2011-06-28 16:35:32 +00:00
|
|
|
cp -R doc/* ${DESTDIR}/usr/share/doc/lua
|
|
|
|
}
|
2013-04-10 13:41:44 +00:00
|
|
|
|
|
|
|
lua-devel_package() {
|
2014-10-13 08:42:44 +00:00
|
|
|
depends="${makedepends} lua>=${version}_${revision}"
|
2013-04-10 13:41:44 +00:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
2013-04-10 14:50:24 +00:00
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-10-10 09:04:26 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-10 14:50:24 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/doc
|
2013-04-10 13:41:44 +00:00
|
|
|
}
|
|
|
|
}
|