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