wok-next annotate lua52/receipt @ rev 21257
encfs: use cmake
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 06 13:47:57 2019 +0100 (2019-12-06) |
parents | |
children |
rev | line source |
---|---|
al@21150 | 1 # SliTaz package receipt v2. |
al@21150 | 2 |
al@21150 | 3 PACKAGE="lua52" |
al@21150 | 4 VERSION="5.2.4" |
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="ef15259421197e3d85b7d6e4871b8c26fd82c1cf" |
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 luac52" # move luac compiler to dev |
al@21150 | 21 |
al@21150 | 22 DEPENDS_liblua52=" " |
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/lua52/' \ |
al@21150 | 30 -e '/^LUAC_T=/ s/luac/luac52/' -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.2 \ |
al@21150 | 44 INSTALL_MAN=$install/usr/share/man/man1 \ |
al@21150 | 45 TO_BIN='lua52 luac52' \ |
al@21150 | 46 TO_LIB="liblua52.so liblua52.so.5.2 liblua52.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/lua52.pc |
al@21150 | 53 } |
al@21150 | 54 |
al@21150 | 55 testsuite() { |
al@21150 | 56 $install/usr/bin/lua52 -v |
al@21150 | 57 } |
al@21150 | 58 |
al@21150 | 59 post_install_lua52() { |
al@21150 | 60 ln -sf lua52 "$1/usr/bin/lua" |
al@21150 | 61 } |