wok-current view ttf-bitstream-vera/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | 6831608a1b2a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ttf-bitstream-vera"
4 VERSION="1.10"
5 CATEGORY="fonts"
6 SHORT_DESC="The ttf bitstream vera fonts."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="other"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://apps.gnome.org/en/app/org.gnome.font-viewer/"
11 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/$VERSION/$TARBALL"
12 TAGS="font"
13 HOST_ARCH="i486 arm"
15 current_version()
16 {
17 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
18 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/share/fonts/truetype/ttf-bitstream-vera
25 cp -a $src/*.ttf $fs/usr/share/fonts/truetype/ttf-bitstream-vera
26 rm $fs/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoB*
27 rm $fs/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoIt*
28 }
30 # Pre and post install commands for Tazpkg.
31 post_install()
32 {
33 chroot "$1/" /usr/bin/fc-cache
34 }