wok view lua5.1-lpeg/receipt @ rev 25548

aaphoto: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 23 17:05:06 2023 +0000 (15 months ago)
parents 0aa34f26a923
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lua5.1-lpeg"
4 VERSION="1.0.2"
5 CATEGORY="libs"
6 TAGS="lua"
7 SHORT_DESC="Pattern-matching library for Lua."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="http://www.inf.puc-rio.br/~roberto/lpeg/"
12 SOURCE="lpeg"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="${WEB_SITE}$SOURCE-$VERSION.tar.gz"
16 SUGGESTED="lua5.1"
17 BUILD_DEPENDS="lua5.1-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/tar.gz/!d;s|.*lpeg-||;s|.tar.*||'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 make LUADIR=/usr/include/lua/5.1
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib/lua/5.1
36 cp -a $src/lpeg.so $fs/usr/lib/lua/5.1
37 cp -a $src/re.lua $fs/usr/lib/lua/5.1
38 }