wok view xorg-mkfontdir/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents eb8067417980
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-mkfontdir"
4 VERSION="1.0.7"
5 CATEGORY="x-window"
6 SHORT_DESC="Create an index of X font files in a directory."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 SOURCE="mkfontdir"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://xorg.freedesktop.org/"
12 WGET_URL="$XORG_MIRROR/app/$TARBALL"
13 TAGS="utility xorg fonts"
15 DEPENDS="xorg-mkfontscale"
17 current_version()
18 {
19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
20 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.ls sr
24 compile_rules()
25 {
26 cd $src
27 ./configure \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 chmod +x $fs/usr/bin/*
39 }