wok view rcssmin/receipt @ rev 24626
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 07 17:32:18 2022 +0000 (2022-03-07) |
parents | bc08d1b89c0f |
children | 01119cbefbc3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="rcssmin"
4 VERSION="1.0.6"
5 CATEGORY="development"
6 SHORT_DESC="rCSSmin is a CSS minifier written in Python"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="Apache"
9 WEB_SITE="http://opensource.perlig.de/rcssmin/"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="http://storage.perlig.de/rcssmin/$TARBALL"
13 DEPENDS="python"
14 BUILD_DEPENDS="python-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py install --root=$install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 }