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