wok-6.x view terminal/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents a78610b2eb47
children bd7510903310
line source
1 # SliTaz package receipt.
3 PACKAGE="terminal"
4 VERSION="0.6.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Terminal emunaltor for Xfce Desktop Environment"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="xfce4-terminal"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="https://www.xfce.org/"
12 WGET_URL="http://archive.xfce.org/src/apps/$SOURCE/${VERSION%.*}/$TARBALL"
13 TAGS="terminal"
14 PROVIDE="$SOURCE"
16 DEPENDS="libexo vte startup-notification dbus libxfce4ui"
17 BUILD_DEPENDS="libexo-dev gtk+-dev vte-dev dbus-dev startup-notification-dev \
18 intltool pkg-config util-linux-uuid-dev libxfce4ui-dev xcb-util-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
24 sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
25 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure --prefix=/usr --infodir=/usr/share/info \
32 --mandir=/usr/share/man --libexecdir=/usr/lib/xfce4 \
33 --disable-static $CONFIGURE_ARGS && \
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/locale
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
44 cp -a $install/usr/share/applications $fs/usr/share
45 cp -a $install/usr/share/xfce4 $fs/usr/share
46 }