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