lua: convert to the new template format.

This commit is contained in:
Juan RP 2013-04-10 15:41:44 +02:00
parent e969e87f78
commit f0105c662b
2 changed files with 18 additions and 20 deletions

View file

@ -1,18 +0,0 @@
# Template file for 'lua-devel'.
#
depends="ncurses-devel readline-devel lua"
short_desc="${short_desc} - development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
do_install()
{
install -d ${DESTDIR}/usr/{lib,share}
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share/doc ${DESTDIR}/usr/share
}

View file

@ -18,8 +18,6 @@ long_desc="
garbage collection, making it ideal for configuration, scripting, and garbage collection, making it ideal for configuration, scripting, and
rapid prototyping." rapid prototyping."
subpackages="lua-devel"
do_build() { do_build() {
export CFLAGS="$CFLAGS -fPIC" export CFLAGS="$CFLAGS -fPIC"
make CC="$CC" RANLIB="$RANLIB" \ make CC="$CC" RANLIB="$RANLIB" \
@ -39,3 +37,21 @@ do_install() {
cp -R doc/* ${DESTDIR}/usr/share/doc/lua cp -R doc/* ${DESTDIR}/usr/share/doc/lua
cd ${DESTDIR}/usr/lib && ln -sf liblua.so.5.1 liblua.so.5 cd ${DESTDIR}/usr/lib && ln -sf liblua.so.5.1 liblua.so.5
} }
lua-devel_package() {
depends="ncurses-devel readline-devel lua>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include usr
vmove "usr/lib/*.a" usr/lib
vmove usr/lib/pkgconfig usr/lib
vmove usr/share/doc usr/share
}
}
lua_package() {
pkg_install() {
vmove "*"
}
}