wok-next view lua51/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="lua51"
4 VERSION="5.1.5"
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="b3882111ad02ecc6b972f8c1241647905cb2e3fc"
15 # Integrity check: https://www.lua.org/ftp/
17 BUILD_DEPENDS="readline-dev"
18 SPLIT="lib$PACKAGE $PACKAGE-dev $PACKAGE"
20 COPY_dev="@dev luac51" # move luac compiler to dev
22 DEPENDS_liblua51=" "
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/lua51/' \
30 -e '/^LUAC_T=/ s/luac/luac51/' -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.1 \
44 INSTALL_MAN=$install/usr/share/man/man1 \
45 TO_BIN='lua51 luac51' \
46 TO_LIB="liblua51.so liblua51.so.5.1 liblua51.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/lua51.pc
53 }
55 testsuite() {
56 $install/usr/bin/lua51 -v
57 }
59 post_install_lua51() {
60 ln -sf lua51 "$1/usr/bin/lua"
61 }