wok view wmctrl/receipt @ rev 24436
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 13:09:42 2022 +0000 (2022-02-13) |
parents | 2ed72f71270b |
children | fb82383c591b |
line source
1 # SliTaz package receipt.
3 PACKAGE="wmctrl"
4 VERSION="1.07"
5 CATEGORY="utilities"
6 SHORT_DESC="A UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager."
7 MAINTAINER="yuripourre@gmail.com"
8 LICENSE="GPL"
9 WEB_SITE="http://tripie.sweb.cz/utils/wmctrl/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}dist/$TARBALL"
14 DEPENDS="glib"
15 BUILD_DEPENDS="glib-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --mandir=/usr/share/man\
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 }