wok annotate flag-icons/receipt @ rev 25421

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 10 07:02:08 2022 +0000 (21 months ago)
parents 7798b28d62aa
children a66f312c374b
rev   line source
al@16475 1 # SliTaz package receipt.
al@16475 2
al@16475 3 PACKAGE="flag-icons"
al@16475 4 VERSION="2.6"
al@16475 5 CATEGORY="misc"
al@16475 6 SHORT_DESC="2600 Flag Icon Set from GoSquared"
al@16475 7 MAINTAINER="al.bobylev@gmail.com"
al@16475 8 LICENSE="MIT"
al@16475 9 WEB_SITE="https://www.gosquared.com/resources/flag-icons"
pascal@16487 10 TARBALL="$PACKAGE-$VERSION.zip"
pascal@16487 11 WGET_URL="https://downloads.gosquared.com/pixels/flags.zip"
al@16475 12
al@16475 13 BUILD_DEPENDS="wget"
al@16475 14
pascal@24759 15 # What is the latest version available today?
pascal@24759 16 current_version()
pascal@24759 17 {
pascal@24759 18 wget -O - https://github.com/gosquared/flags/commits/master 2>/dev/null | \
pascal@24759 19 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
pascal@24759 20 }
pascal@24759 21
al@16475 22 # Rules to gen a SliTaz package suitable for Tazpkg.
al@16475 23 genpkg_rules()
al@16475 24 {
al@16475 25 for SIZE in 16 24 32 48 64; do
al@16475 26 fusih=$fs/usr/share/icons/hicolor/${SIZE}x$SIZE
al@16475 27 mkdir -p $fusih
al@16475 28 cp -a $src/flags-iso/shiny/$SIZE $fusih/intl
al@16475 29 done
al@16475 30
al@16475 31 mkdir -p $fs/usr/share/licenses
al@16475 32 cp -a $src/LICENSE.txt $fs/usr/share/licenses/gosquared.txt
al@16475 33 }