wok view xorg-bdftopcf/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 54fe236b54a6
children 3e2a0347b2f1
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-bdftopcf"
4 VERSION="1.1"
5 CATEGORY="x-window"
6 TAGS="utility xorg fonts"
7 SHORT_DESC="Font compiler for the X server and font server."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://www.x.org/wiki/"
12 SOURCE="bdftopcf"
13 TARBALL="$SOURCE-$VERSION.tar.bz2"
14 WGET_URL="$WEB_SITE/releases/individual/app/$TARBALL"
16 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.ls sr
23 compile_rules()
24 {
25 ./configure \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR 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 }