lua: update to 5.2.3.

This commit is contained in:
Juan RP 2014-01-03 17:36:00 +01:00
parent 62f1e38667
commit 7252b00a84

View file

@ -1,24 +1,17 @@
# Template file for 'lua'
pkgname=lua
version=5.2.2
revision=2
version=5.2.3
revision=1
makedepends="ncurses-devel readline-devel"
short_desc="Powerful, fast, lightweight, embeddable scripting language"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.lua.org"
license="MIT"
distfiles="http://www.lua.org/ftp/$pkgname-$version.tar.gz"
checksum=3fd67de3f5ed133bf312906082fa524545c6b9e1b952e8215ffbd27113f49f00
long_desc="
Lua combines simple procedural syntax with powerful data description
constructs based on associative arrays and extensible semantics. Lua
is dynamically typed, runs by interpreting bytecode for a register-based
virtual machine, and has automatic memory management with incremental
garbage collection, making it ideal for configuration, scripting, and
rapid prototyping."
checksum=13c2fb97961381f7d06d5b5cea55b743c163800896fd5c5e2356201d3619002d
do_build() {
sed "s/%VER%/${version%.*}/g;s/%REL%/$version/g" ${FILESDIR}/lua.pc > lua.pc
sed "s/%VER%/${version%.*}/g;s/%REL%/${version}/g" ${FILESDIR}/lua.pc > lua.pc
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" \
CC="$CC" RANLIB="$RANLIB" \
INSTALL_DATA="cp -d" LUA_SO=liblua.so ${makejobs} linux
@ -26,7 +19,7 @@ do_build() {
do_install() {
make INSTALL_DATA="cp -d" INSTALL_TOP="${DESTDIR}/usr" \
TO_LIB="liblua.a liblua.so liblua.so.5.2 liblua.so.5.2.1" \
TO_LIB="liblua.a liblua.so liblua.so.${version%.*} liblua.so.${version}" \
INSTALL_MAN="${DESTDIR}/usr/share/man/man1" install
vinstall lua.pc 644 usr/lib/pkgconfig
@ -37,7 +30,7 @@ do_install() {
}
lua-devel_package() {
depends="ncurses-devel readline-devel lua>=${version}"
depends="ncurses-devel readline-devel lua>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include