wok view python-antlr/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (9 months ago)
parents c056636b8c7e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python-antlr"
4 VERSION="3.5.3"
5 CATEGORY="development"
6 SHORT_DESC="Language tool for constructing recognizers, compilers for python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.antlr.org/"
11 SOURCE="antlr"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$SOURCE/${SOURCE}3/archive/$VERSION.tar.gz"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-dev python-setuptools"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd runtime/Python &&
29 python setup.py build &&
30 python setup.py install --root=$DESTDIR
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cook_copy_folders lib
37 }