# SliTaz package receipt. PACKAGE="flag-icons" VERSION="2.6" CATEGORY="misc" SHORT_DESC="2600 Flag Icon Set from GoSquared" MAINTAINER="al.bobylev@gmail.com" LICENSE="MIT" WEB_SITE="https://www.gosquared.com/resources/flag-icons" TARBALL="$PACKAGE-$VERSION.zip" WGET_URL="https://downloads.gosquared.com/pixels/flags.zip" BUILD_DEPENDS="wget" # What is the latest version available today? current_version() { wget -O - https://github.com/gosquared/flags/commits/master 2>/dev/null | \ sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { for SIZE in 16 24 32 48 64; do fusih=$fs/usr/share/icons/hicolor/${SIZE}x$SIZE mkdir -p $fusih cp -a $src/flags-iso/shiny/$SIZE $fusih/intl done mkdir -p $fs/usr/share/licenses cp -a $src/LICENSE.txt $fs/usr/share/licenses/gosquared.txt }