wok-current view re2c/receipt @ rev 25024

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 18 20:10:17 2022 +0000 (2022-05-18)
parents df145f07a39e
children 0015d74c0b32
line source
1 # SliTaz package receipt.
3 PACKAGE="re2c"
4 VERSION="1.3"
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 DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 }