wok view re2c/receipt @ rev 25361

sshrc: typo in wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 27 16:25:20 2022 +0000 (2022-07-27)
parents 5ea0ce1cecc0
children 0262035dc1e7
line source
1 # SliTaz package receipt.
3 PACKAGE="re2c"
4 VERSION="3.0"
5 CATEGORY="system-tools"
6 TAGS="scanner"
7 SHORT_DESC="A tool for generating C-based recognisers from regular expressions."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="PublicDomain"
10 WEB_SITE="https://re2c.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/skvadrik/re2c/archive/$VERSION.tar.gz"
15 BUILD_DEPENDS="automake libtool"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 [ -d m4 ] || mkdir m4
27 ./autogen.sh &&
28 ./configure \
29 --prefix=/usr \
30 $CONFIGURE_ARGS &&
31 make &&
32 make install DESTDIR=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_folders bin
39 }