wok annotate lua5.1/receipt @ rev 25424
updated x265 and x265-dev (3.2 -> 3.5)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 18 16:24:15 2022 +0100 (2022-08-18) |
parents | 2838a5093750 |
children |
rev | line source |
---|---|
pankso@13632 | 1 # SliTaz package receipt. |
pankso@13632 | 2 |
pankso@13632 | 3 PACKAGE="lua5.1" |
Hans-G?nter@21381 | 4 VERSION="5.1.5" |
pankso@13632 | 5 CATEGORY="development" |
pankso@13632 | 6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language." |
pankso@13632 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15379 | 8 LICENSE="MIT" |
Hans-G?nter@21381 | 9 WEB_SITE="https://www.lua.org/" |
Hans-G?nter@21381 | 10 |
Hans-G?nter@21381 | 11 SOURCE="lua" |
pankso@13632 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@21381 | 13 WGET_URL="https://www.lua.org/ftp/$TARBALL" |
pankso@13632 | 14 |
pascal@15379 | 15 DEPENDS="readline ncurses" |
pascal@15379 | 16 BUILD_DEPENDS="readline-dev" |
pascal@15379 | 17 |
pascal@24447 | 18 # What is the latest version available today? |
pascal@24447 | 19 current_version() |
pascal@24447 | 20 { |
pascal@24447 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 22 sed "/latest/d;/$SOURCE-5.1/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 23 } |
pascal@24447 | 24 |
pankso@13632 | 25 # Rules to configure and make the package. |
pankso@13632 | 26 compile_rules() |
pankso@13632 | 27 { |
pankso@13632 | 28 patch -p0 < $stuff/lua5.1-paths.patch || exit 1 |
pankso@13632 | 29 sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc |
pankso@13632 | 30 sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc |
pankso@13632 | 31 sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc |
pankso@13632 | 32 sed -i "s#/usr/local/#/usr/#" src/luaconf.h |
pankso@13632 | 33 sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h |
pankso@13632 | 34 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile |
Hans-G?nter@21381 | 35 |
pankso@13632 | 36 make linux && |
Hans-G?nter@21381 | 37 make install \ |
Hans-G?nter@21381 | 38 INSTALL_TOP=$DESTDIR/usr \ |
pankso@13632 | 39 INSTALL_MAN=$DESTDIR/usr/share/man/man1 |
pankso@13632 | 40 } |
pankso@13632 | 41 |
pankso@13632 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13632 | 43 genpkg_rules() |
pankso@13632 | 44 { |
Hans-G?nter@21381 | 45 mkdir -p $fs/usr/bin |
Hans-G?nter@21381 | 46 mkdir -p $fs/usr/lib/lua/5.1 |
Hans-G?nter@21381 | 47 |
Hans-G?nter@21381 | 48 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1 |
Hans-G?nter@21381 | 49 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1 |
pankso@13632 | 50 } |