wok annotate pngcrush/receipt @ rev 25064

openvas-libraries, openvas-client: update gnutls calls
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 08 16:46:37 2022 +0000 (2022-06-08)
parents 73e9a7d984fc
children ad0bc3efbf37
rev   line source
mimas@2036 1 # SliTaz package receipt.
mimas@2036 2
mimas@2036 3 PACKAGE="pngcrush"
al@19128 4 VERSION="1.8.1"
al@19128 5 CATEGORY="graphics"
mimas@2036 6 SHORT_DESC="PNG optimizer"
mimas@2036 7 MAINTAINER="mimas@slitaz.org"
pascal@15375 8 LICENSE="zlib/libpng"
al@19128 9 WEB_SITE="https://sourceforge.net/projects/pmt/"
al@19128 10 TARBALL="$PACKAGE-$VERSION.tar.xz"
mimas@2036 11 WGET_URL="$SF_MIRROR/pmt/$TARBALL"
mimas@2036 12
al@19128 13 DEPENDS="glibc-base"
al@19128 14
pascal@24396 15 # What is the latest version available today?
pascal@24396 16 current_version()
pascal@24396 17 {
pascal@24396 18 wget -O - https://sourceforge.net/projects/pmt/files/pngcrush/ 2>/dev/null | \
pascal@24396 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24396 20 sed '/scope="row/!d;s|.*/pngcrush/||;s|/.*||;q'
pascal@24396 21 }
pascal@24396 22
mimas@2036 23 # Rules to configure and make the package.
mimas@2036 24 compile_rules()
mimas@2036 25 {
mimas@2036 26 make
al@19128 27
al@19128 28 mkdir -p $install/usr/bin
al@19128 29 cp -a $src/pngcrush $install/usr/bin
mimas@2036 30 }
mimas@2036 31
mimas@2036 32 # Rules to gen a SliTaz package suitable for Tazpkg.
mimas@2036 33 genpkg_rules()
mimas@2036 34 {
al@19128 35 cp -a $install/* $fs
mimas@2036 36 }