wok-current annotate csstidy/receipt @ rev 25156
updated ptxdist (2020.03.0 -> 2020.12.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 30 15:51:09 2022 +0100 (2022-06-30) |
parents | 076f424196b2 |
children | 7dd01dedad38 |
rev | line source |
---|---|
al@18686 | 1 # SliTaz package receipt. |
al@18686 | 2 |
al@18686 | 3 PACKAGE="csstidy" |
al@18686 | 4 VERSION="1.4" |
al@18686 | 5 CATEGORY="development" |
al@18686 | 6 SHORT_DESC="CSSTidy is a program that optimises, formats and fixes CSS code" |
al@18686 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@18686 | 8 LICENSE="GPL2" |
al@18686 | 9 WEB_SITE="http://csstidy.sourceforge.net/" |
al@18686 | 10 TARBALL="$PACKAGE-source-$VERSION.zip" |
al@18686 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@18686 | 12 |
al@18686 | 13 DEPENDS="" |
al@18686 | 14 BUILD_DEPENDS="scons" |
al@18686 | 15 |
pascal@24383 | 16 # What is the latest version available today? |
pascal@24383 | 17 current_version() |
pascal@24383 | 18 { |
pascal@24453 | 19 wget -O - https://github.com/Cerdic/CSSTidy/tags 2>/dev/null | \ |
pascal@24453 | 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24383 | 21 } |
pascal@24383 | 22 |
al@18686 | 23 # Rules to configure and make the package. |
al@18686 | 24 compile_rules() |
al@18686 | 25 { |
al@18686 | 26 patch -p1 -i $stuff/csstidy-1.4-fix-misc.cpp.patch |
al@18686 | 27 scons |
al@18686 | 28 mkdir -p $install/usr/bin |
al@18686 | 29 cp -a $src/release/csstidy/csstidy $install/usr/bin |
al@18686 | 30 } |
al@18686 | 31 |
al@18686 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18686 | 33 genpkg_rules() |
al@18686 | 34 { |
al@18686 | 35 cp -a $install/* $fs |
al@18686 | 36 } |