2011-06-28 18:35:32 +02:00
|
|
|
# Template file for 'lua'
|
|
|
|
pkgname=lua
|
2013-10-10 11:04:26 +02:00
|
|
|
version=5.2.2
|
|
|
|
revision=1
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="ncurses-devel readline-devel"
|
2013-10-10 11:04:26 +02:00
|
|
|
short_desc="Powerful, fast, lightweight, embeddable scripting language"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-28 18:35:32 +02:00
|
|
|
homepage="http://www.lua.org"
|
|
|
|
license="MIT"
|
2013-10-10 11:04:26 +02:00
|
|
|
distfiles="http://www.lua.org/ftp/$pkgname-$version.tar.gz"
|
|
|
|
checksum=3fd67de3f5ed133bf312906082fa524545c6b9e1b952e8215ffbd27113f49f00
|
2011-06-28 18:35:32 +02:00
|
|
|
long_desc="
|
2013-03-10 10:36:13 +01:00
|
|
|
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."
|
2011-06-28 18:35:32 +02:00
|
|
|
|
2012-02-22 05:40:52 +01:00
|
|
|
do_build() {
|
2013-10-10 11:04:26 +02:00
|
|
|
sed "s/%VER%/${version%.*}/g;s/%REL%/$version/g" ${FILESDIR}/lua.pc > lua.pc
|
|
|
|
make CFLAGS="$CFLAGS -fPIC" CC="$CC" RANLIB="$RANLIB" \
|
2013-03-10 10:36:13 +01:00
|
|
|
INSTALL_DATA="cp -d" LUA_SO=liblua.so ${makejobs} linux
|
2011-06-28 18:35:32 +02:00
|
|
|
}
|
|
|
|
|
2012-02-22 05:40:52 +01:00
|
|
|
do_install() {
|
2011-06-28 18:35:32 +02:00
|
|
|
make INSTALL_DATA="cp -d" INSTALL_TOP="${DESTDIR}/usr" \
|
2013-10-10 11:04:26 +02:00
|
|
|
TO_LIB="liblua.a liblua.so liblua.so.5.2 liblua.so.5.2.1" \
|
2011-06-28 18:35:32 +02:00
|
|
|
INSTALL_MAN="${DESTDIR}/usr/share/man/man1" install
|
2013-10-10 11:04:26 +02:00
|
|
|
|
|
|
|
vinstall lua.pc 644 usr/lib/pkgconfig
|
2011-06-28 18:35:32 +02:00
|
|
|
|
|
|
|
# Install the documentation
|
2013-10-10 11:04:26 +02:00
|
|
|
vmkdir usr/share/doc/lua
|
2011-06-28 18:35:32 +02:00
|
|
|
cp -R doc/* ${DESTDIR}/usr/share/doc/lua
|
|
|
|
}
|
2013-04-10 15:41:44 +02:00
|
|
|
|
|
|
|
lua-devel_package() {
|
|
|
|
depends="ncurses-devel readline-devel lua>=${version}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
2013-04-10 16:50:24 +02:00
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-10-10 11:04:26 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-10 16:50:24 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/doc
|
2013-04-10 15:41:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
lua_package() {
|
|
|
|
pkg_install() {
|
2013-10-10 11:04:26 +02:00
|
|
|
vmove all
|
2013-04-10 15:41:44 +02:00
|
|
|
}
|
|
|
|
}
|