void-packages/srcpkgs/lua/template

43 lines
1.2 KiB
Plaintext
Raw Normal View History

# Template file for 'lua'
pkgname=lua
2014-01-03 17:36:00 +01:00
version=5.2.3
revision=2
makedepends="ncurses-devel readline-devel>=6.3"
2013-10-10 11:04:26 +02:00
short_desc="Powerful, fast, lightweight, embeddable scripting language"
maintainer="Juan RP <xtraeme@gmail.com>"
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"
2014-01-03 17:36:00 +01:00
checksum=13c2fb97961381f7d06d5b5cea55b743c163800896fd5c5e2356201d3619002d
2012-02-22 05:40:52 +01:00
do_build() {
2014-01-03 17:36:00 +01:00
sed "s/%VER%/${version%.*}/g;s/%REL%/${version}/g" ${FILESDIR}/lua.pc > lua.pc
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" \
CC="$CC" RANLIB="$RANLIB" \
2013-03-10 10:36:13 +01:00
INSTALL_DATA="cp -d" LUA_SO=liblua.so ${makejobs} linux
}
2012-02-22 05:40:52 +01:00
do_install() {
make INSTALL_DATA="cp -d" INSTALL_TOP="${DESTDIR}/usr" \
2014-01-03 17:36:00 +01:00
TO_LIB="liblua.a liblua.so liblua.so.${version%.*} liblua.so.${version}" \
INSTALL_MAN="${DESTDIR}/usr/share/man/man1" install
2013-10-10 11:04:26 +02:00
vinstall lua.pc 644 usr/lib/pkgconfig
# Install the documentation
2013-10-10 11:04:26 +02:00
vmkdir usr/share/doc/lua
cp -R doc/* ${DESTDIR}/usr/share/doc/lua
}
lua-devel_package() {
depends="ncurses-devel readline-devel>=6.3 lua>=${version}_${revision}"
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
}
}