wok-next diff lua-lpeg/receipt @ rev 21457
updated sshfs-fuse (3.3.1 -> 3.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 07 14:36:33 2020 +0100 (2020-05-07) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lua-lpeg/receipt Thu May 07 14:36:33 2020 +0100 1.3 @@ -0,0 +1,57 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="lua-lpeg" 1.7 +VERSION="1.0.1" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Pattern-matching library for Lua" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="MIT" 1.12 +WEB_SITE="http://www.inf.puc-rio.br/~roberto/lpeg/" 1.13 +REPOLOGY="lua:lpeg" 1.14 + 1.15 +TARBALL="lpeg-$VERSION.tar.gz" 1.16 +WGET_URL="http://www.inf.puc-rio.br/~roberto/lpeg/$TARBALL" 1.17 +TARBALL_SHA1="b2f81624e0ce9c99c0731287c3475fac1f1c0f50" 1.18 + 1.19 +BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev" 1.20 +SPLIT="lua51-lpeg:5.1 lua52-lpeg:5.2 lua53-lpeg:5.3" 1.21 + 1.22 +COPY_lua51_lpeg="@std" 1.23 +COPY_lua52_lpeg="@std" 1.24 +COPY_lua53_lpeg="@std" 1.25 + 1.26 +DEPENDS_lua51_lpeg="lua51" 1.27 +DEPENDS_lua52_lpeg="lua52" 1.28 +DEPENDS_lua53_lpeg="lua53" 1.29 + 1.30 +CAT_std="nopack|" 1.31 +CAT_lua51_lpeg="system-tools|for Lua 5.1" 1.32 +CAT_lua52_lpeg="system-tools|for Lua 5.2" 1.33 +CAT_lua53_lpeg="system-tools|for Lua 5.3" 1.34 + 1.35 +PROVIDE_lua51_lpeg="lua-lpeg" 1.36 +PROVIDE_lua52_lpeg="lua-lpeg" 1.37 +PROVIDE_lua53_lpeg="lua-lpeg" 1.38 + 1.39 +compile_rules() { 1.40 + if [ -z "$SET" ]; then 1.41 + cook_pick_docs HISTORY lpeg.html re.html lpeg-128.gif 1.42 + find $install -exec chmod u+w '{}' \; 1.43 + return 1.44 + fi 1.45 + 1.46 + case $ARCH in 1.47 + x86_64) CFLAGS="$CFLAGS -fPIC";; 1.48 + esac 1.49 + 1.50 + # get variables from .pc file 1.51 + pc="lua${SET/./}" 1.52 + includedir=$(pkg-config --variable=includedir $pc) 1.53 + install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc) 1.54 + install_lmod=$(pkg-config --variable=INSTALL_LMOD $pc) 1.55 + 1.56 + make LUADIR=$includedir || return 1 1.57 + 1.58 + install -Dm755 lpeg.so $install$install_cmod/lpeg.so 1.59 + install -Dm644 re.lua $install$install_lmod/re.lua 1.60 +}