# SliTaz package receipt. PACKAGE="ttf-bitstream-vera" VERSION="1.10" CATEGORY="fonts" SHORT_DESC="The ttf bitstream vera fonts." MAINTAINER="pankso@slitaz.org" LICENSE="other" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://apps.gnome.org/en/app/org.gnome.font-viewer/" WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/$VERSION/$TARBALL" TAGS="font" HOST_ARCH="i486 arm" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/fonts/truetype/ttf-bitstream-vera cp -a $src/*.ttf $fs/usr/share/fonts/truetype/ttf-bitstream-vera rm $fs/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoB* rm $fs/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoIt* } # Pre and post install commands for Tazpkg. post_install() { chroot "$1/" /usr/bin/fc-cache }