wok-next view lua-lpeg/receipt @ rev 21435

updated rdesktop again (1.8.3 -> 1.9.0)
author Hans-G?nter Theisgen
date Tue May 05 10:10:24 2020 +0100 (2020-05-05)
parents
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lua-lpeg"
4 VERSION="1.0.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Pattern-matching library for Lua"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://www.inf.puc-rio.br/~roberto/lpeg/"
10 REPOLOGY="lua:lpeg"
12 TARBALL="lpeg-$VERSION.tar.gz"
13 WGET_URL="http://www.inf.puc-rio.br/~roberto/lpeg/$TARBALL"
14 TARBALL_SHA1="b2f81624e0ce9c99c0731287c3475fac1f1c0f50"
16 BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev"
17 SPLIT="lua51-lpeg:5.1 lua52-lpeg:5.2 lua53-lpeg:5.3"
19 COPY_lua51_lpeg="@std"
20 COPY_lua52_lpeg="@std"
21 COPY_lua53_lpeg="@std"
23 DEPENDS_lua51_lpeg="lua51"
24 DEPENDS_lua52_lpeg="lua52"
25 DEPENDS_lua53_lpeg="lua53"
27 CAT_std="nopack|"
28 CAT_lua51_lpeg="system-tools|for Lua 5.1"
29 CAT_lua52_lpeg="system-tools|for Lua 5.2"
30 CAT_lua53_lpeg="system-tools|for Lua 5.3"
32 PROVIDE_lua51_lpeg="lua-lpeg"
33 PROVIDE_lua52_lpeg="lua-lpeg"
34 PROVIDE_lua53_lpeg="lua-lpeg"
36 compile_rules() {
37 if [ -z "$SET" ]; then
38 cook_pick_docs HISTORY lpeg.html re.html lpeg-128.gif
39 find $install -exec chmod u+w '{}' \;
40 return
41 fi
43 case $ARCH in
44 x86_64) CFLAGS="$CFLAGS -fPIC";;
45 esac
47 # get variables from .pc file
48 pc="lua${SET/./}"
49 includedir=$(pkg-config --variable=includedir $pc)
50 install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
51 install_lmod=$(pkg-config --variable=INSTALL_LMOD $pc)
53 make LUADIR=$includedir || return 1
55 install -Dm755 lpeg.so $install$install_cmod/lpeg.so
56 install -Dm644 re.lua $install$install_lmod/re.lua
57 }