wok-6.x view python-antlr/receipt @ rev 24569
sokojs: add shrink.sh (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 26 18:46:53 2022 +0000 (2022-02-26) |
parents | f0e9218a6f96 |
children | c056636b8c7e |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-antlr"
4 VERSION="3.5.2"
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 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src/runtime/Python &&
28 python setup.py build &&
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/lib $fs/usr
37 }