wok view urxvt/receipt @ rev 24462

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 21:07:01 2022 +0000 (2022-02-16)
parents 7c02b0189105
children 1805f71c5d9f
line source
1 # SliTaz package receipt.
3 PACKAGE="urxvt"
4 VERSION="9.22"
5 CATEGORY="utilities"
6 TAGS="terminal"
7 SHORT_DESC="Terminal with unicode support."
8 MAINTAINER="sygne@ombres.eu"
9 LICENSE="GPL2"
10 WEB_SITE="http://software.schmorp.de/pkg/rxvt-unicode.html"
12 SOURCE="rxvt-unicode"
13 TARBALL="$SOURCE-$VERSION.tar.bz2"
14 WGET_URL="http://dist.schmorp.de/$SOURCE/$TARBALL"
16 DEPENDS="expat fontconfig freetype gcc-lib-base xorg-libX11 xorg-libXft \
17 xorg-xmessage zlib"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
23 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd src
30 patch --input=$stuff/patches/command.C-9.22
31 patch --input=$stuff/patches/misc.C-9.22
32 cd ..
34 ./configure \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --disable-perl \
38 --with-codesets='eu' \
39 --mandir=/usr/share/man \
40 $CONFIGURE_ARGS &&
41 make &&
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
49 cp -a $install/usr/bin $fs/usr
50 }