wok annotate xorg-mkfontscale/receipt @ rev 25562
ext4magic: add current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 01 08:21:00 2023 +0000 (16 months ago) |
parents | c98388cd248b |
children |
rev | line source |
---|---|
pascal@11203 | 1 # SliTaz package receipt. |
pascal@11203 | 2 |
pascal@11203 | 3 PACKAGE="xorg-mkfontscale" |
Hans-G?nter@22239 | 4 VERSION="1.2.1" |
pascal@11203 | 5 CATEGORY="x-window" |
Hans-G?nter@22239 | 6 TAGS="utility xorg fonts" |
Hans-G?nter@22239 | 7 SHORT_DESC="Create an index of scaleable font files for X." |
pascal@11203 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 9 LICENSE="MIT" |
Hans-G?nter@22239 | 10 WEB_SITE="http://xorg.freedesktop.org/" |
Hans-G?nter@22239 | 11 |
pascal@11203 | 12 SOURCE="mkfontscale" |
pascal@11203 | 13 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@11203 | 14 WGET_URL="$WEB_SITE/releases/individual/app/$TARBALL" |
pascal@11203 | 15 |
pascal@24072 | 16 current_version() |
pascal@24072 | 17 { |
pascal@24072 | 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 19 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 20 } |
pascal@24072 | 21 |
pascal@11203 | 22 # Rules to configure and make the package.ls sr |
pascal@11203 | 23 compile_rules() |
pascal@11203 | 24 { |
Hans-G?nter@22239 | 25 ./configure \ |
Hans-G?nter@22239 | 26 --prefix=/usr \ |
Hans-G?nter@22239 | 27 --mandir=/usr/share/man \ |
pascal@11203 | 28 $CONFIGURE_ARGS && |
pascal@11203 | 29 make && |
pascal@11203 | 30 make DESTDIR=$DESTDIR install |
pascal@11203 | 31 } |
pascal@11203 | 32 |
pascal@11203 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11203 | 34 genpkg_rules() |
pascal@11203 | 35 { |
pascal@11203 | 36 mkdir -p $fs/usr |
pascal@15579 | 37 cp -a $install/usr/bin $fs/usr |
pascal@11203 | 38 } |