wok view re2c/receipt @ rev 25601
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 18:06:38 2023 +0000 (15 months ago) |
parents | 0015d74c0b32 |
children |
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 [ -d m4 ] || mkdir m4
28 ./autogen.sh &&
29 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install DESTDIR=$DESTDIR
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cook_copy_folders bin
40 }