wok-next annotate lualpeg/receipt @ rev 21084
Add librefox
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Dec 25 14:44:32 2018 +0200 (2018-12-25) |
parents | df20b2110f7e |
children |
rev | line source |
---|---|
al@20791 | 1 # SliTaz package receipt v2. |
al@20791 | 2 |
al@20791 | 3 PACKAGE="lualpeg" |
al@20791 | 4 VERSION="1.0.1" |
al@20791 | 5 CATEGORY="system-tools" |
al@20791 | 6 SHORT_DESC="Pattern-matching library for Lua" |
al@20791 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@20791 | 8 LICENSE="MIT" |
al@21041 | 9 WEB_SITE="http://www.inf.puc-rio.br/~roberto/lpeg/" |
al@20883 | 10 REPOLOGY="lua:lpeg" |
al@20791 | 11 |
al@20791 | 12 TARBALL="lpeg-$VERSION.tar.gz" |
al@20791 | 13 WGET_URL="http://www.inf.puc-rio.br/~roberto/lpeg/$TARBALL" |
al@20791 | 14 |
al@20791 | 15 BUILD_DEPENDS="lua5.1-dev" |
al@20791 | 16 |
al@20791 | 17 compile_rules() { |
al@20791 | 18 sed -i 's|^CFLAGS =|CFLAGS +=|; s|^COPT =|# COPT =|' makefile |
al@20791 | 19 |
al@20791 | 20 make LUADIR=/usr/include/lua/5.1 || return 1 |
al@20791 | 21 |
al@20791 | 22 install -Dm755 lpeg.so $install/usr/lib/lua/5.1/lpeg.so |
al@20791 | 23 install -Dm644 re.lua $install/usr/share/lua/5.1/re.lua |
al@20791 | 24 } |
al@20791 | 25 |
al@20791 | 26 genpkg_rules() { |
al@20791 | 27 copy @std |
al@20791 | 28 DEPENDS="lua5.1" |
al@20791 | 29 } |