wok-current annotate lua5.1-lpeg/receipt @ rev 25658

Fix get-texlive to build on x64 kernel, 2008 version don't support x86_64 arch
author Stanislas Leduc <shann@slitaz.org>
date Fri Feb 16 18:39:22 2024 +0000 (11 months ago)
parents 0aa34f26a923
children
rev   line source
Hans-G?nter@25525 1 # SliTaz package receipt.
Hans-G?nter@25525 2
Hans-G?nter@25525 3 PACKAGE="lua5.1-lpeg"
Hans-G?nter@25525 4 VERSION="1.0.2"
Hans-G?nter@25525 5 CATEGORY="libs"
Hans-G?nter@25525 6 TAGS="lua"
Hans-G?nter@25525 7 SHORT_DESC="Pattern-matching library for Lua."
Hans-G?nter@25525 8 MAINTAINER="maintainer@slitaz.org"
Hans-G?nter@25525 9 LICENSE="MIT"
Hans-G?nter@25525 10 WEB_SITE="http://www.inf.puc-rio.br/~roberto/lpeg/"
Hans-G?nter@25525 11
Hans-G?nter@25525 12 SOURCE="lpeg"
Hans-G?nter@25525 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@25525 14 WGET_URL="${WEB_SITE}$SOURCE-$VERSION.tar.gz"
Hans-G?nter@25525 15
Hans-G?nter@25525 16 SUGGESTED="lua5.1"
Hans-G?nter@25525 17 BUILD_DEPENDS="lua5.1-dev"
Hans-G?nter@25525 18
pascal@25531 19 # What is the latest version available today?
pascal@25531 20 current_version()
pascal@25531 21 {
pascal@25531 22 wget -O - $WEB_SITE 2>/dev/null | \
pascal@25531 23 sed '/tar.gz/!d;s|.*lpeg-||;s|.tar.*||'
pascal@25531 24 }
pascal@25531 25
Hans-G?nter@25525 26 # Rules to configure and make the package.
Hans-G?nter@25525 27 compile_rules()
Hans-G?nter@25525 28 {
Hans-G?nter@25525 29 make LUADIR=/usr/include/lua/5.1
Hans-G?nter@25525 30 }
Hans-G?nter@25525 31
Hans-G?nter@25525 32 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@25525 33 genpkg_rules()
Hans-G?nter@25525 34 {
Hans-G?nter@25525 35 mkdir -p $fs/usr/lib/lua/5.1
Hans-G?nter@25525 36 cp -a $src/lpeg.so $fs/usr/lib/lua/5.1
Hans-G?nter@25525 37 cp -a $src/re.lua $fs/usr/lib/lua/5.1
Hans-G?nter@25525 38 }