wok-next view lua52/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lua52"
4 VERSION="5.2.4"
5 CATEGORY="development"
6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.lua.org/"
12 TARBALL="lua-$VERSION.tar.gz"
13 WGET_URL="https://www.lua.org/ftp/$TARBALL"
14 TARBALL_SHA1="ef15259421197e3d85b7d6e4871b8c26fd82c1cf"
15 # Integrity check: https://www.lua.org/ftp/
17 BUILD_DEPENDS="readline-dev"
18 SPLIT="lib$PACKAGE $PACKAGE-dev $PACKAGE"
20 COPY_dev="@dev luac52" # move luac compiler to dev
22 DEPENDS_liblua52=" "
23 DEPENDS_std="readline"
24 DEPENDS_dev="$PACKAGE lib$PACKAGE"
26 PROVIDE_std="lua"
28 compile_rules() {
29 sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua52/' \
30 -e '/^LUAC_T=/ s/luac/luac52/' -i src/Makefile
32 case $ARCH in
33 x86_64) CFLAGS="$CFLAGS -fPIC";;
34 esac
36 make \
37 MYCFLAGS="$CFLAGS" \
38 MYLDFLAGS="$LDFLAGS" \
39 linux &&
40 make \
41 INSTALL_TOP=$install/usr \
42 INSTALL_DATA="cp -d" \
43 INSTALL_INC=$install/usr/include/lua5.2 \
44 INSTALL_MAN=$install/usr/share/man/man1 \
45 TO_BIN='lua52 luac52' \
46 TO_LIB="liblua52.so liblua52.so.5.2 liblua52.so.$VERSION" \
47 install || return 1
49 cook_pick_docs doc/*.html doc/*.css doc/*.png doc/*.gif
51 mkdir -p $install/usr/lib/pkgconfig
52 sed "s|@RELEASE@|$VERSION|" $stuff/lua.pc.in >$install/usr/lib/pkgconfig/lua52.pc
53 }
55 testsuite() {
56 $install/usr/bin/lua52 -v
57 }
59 post_install_lua52() {
60 ln -sf lua52 "$1/usr/bin/lua"
61 }