wok annotate otf-transcends-games/receipt @ rev 24500

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 19:01:32 2022 +0000 (2022-02-19)
parents d1570adae0ba
children
rev   line source
hackdorte@19061 1 # SliTaz package receipt.
hackdorte@19061 2
hackdorte@19061 3 PACKAGE="otf-transcends-games"
hackdorte@19061 4 VERSION="0.1"
al@19125 5 CATEGORY="fonts"
hackdorte@19061 6 SHORT_DESC="Transcends Games is a font with retro-futuristic style."
hackdorte@19061 7 MAINTAINER="hackdorte@sapo.pt"
hackdorte@19061 8 LICENSE="PublicDomain"
hackdorte@19061 9 SOURCE="transcends-games"
hackdorte@19061 10 WEB_SITE="http://people.slitaz.org/~leonardolaporte"
hackdorte@19061 11 STUFF_DIR="lab.slitaz/5.0/pkg/font/publicdomain"
hackdorte@19061 12 TARBALL="$SOURCE-$VERSION.tar.gz"
hackdorte@19061 13 WGET_URL="${WEB_SITE}/$STUFF_DIR/$TARBALL"
hackdorte@19062 14 TAGS="font otf"
hackdorte@19061 15
hackdorte@19061 16 DEPENDS=""
hackdorte@19061 17 BUILD_DEPENDS="wget"
hackdorte@19061 18
pascal@24500 19 # What is the latest version available today?
pascal@24500 20 current_version()
pascal@24500 21 {
pascal@24500 22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24500 23 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24500 24 }
pascal@24500 25
hackdorte@19061 26 # Rules to configure and make the package.
hackdorte@19061 27 compile_rules()
hackdorte@19061 28 {
hackdorte@19061 29 mkdir -p $install/usr/share/fonts/pd/$SOURCE
hackdorte@19061 30 cp -a $src/* $install/usr/share/fonts/pd/$SOURCE
hackdorte@19061 31 }
hackdorte@19061 32
hackdorte@19061 33 # Rules to gen a SliTaz package suitable for Tazpkg.
hackdorte@19061 34 genpkg_rules()
hackdorte@19061 35 {
hackdorte@19061 36 cp -a $install/* $fs
hackdorte@19061 37 }
hackdorte@19061 38
hackdorte@19061 39 post_install()
hackdorte@19061 40 {
pascal@19065 41 chroot "$1/" /usr/bin/fc-cache
hackdorte@19061 42 }