wok annotate arandr/receipt @ rev 25073

Up dropbear (2022.82)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 11 11:22:52 2022 +0000 (2022-06-11)
parents 2c74083aac19
children
rev   line source
pascal@20526 1 # SliTaz package receipt.
pascal@20526 2
pascal@20526 3 PACKAGE="arandr"
pascal@20526 4 VERSION="0.1.9"
pascal@20526 5 CATEGORY="x-window"
Hans-G?nter@23942 6 SHORT_DESC="GTK+ interface for Xrandr."
pascal@20526 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20527 8 LICENSE="GPL3"
Hans-G?nter@23942 9 WEB_SITE="https://christian.amsuess.com/tools/arandr/"
Hans-G?nter@23942 10
pascal@20526 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20526 12 WGET_URL="${WEB_SITE}files/$TARBALL"
pascal@20526 13
Hans-G?nter@23942 14 DEPENDS="pygtk python xorg-xrandr"
pascal@20598 15 BUILD_DEPENDS="pygtk-dev python-docutils xorg-xrandr"
pascal@20526 16
pascal@24373 17 # What is the latest version available today?
pascal@24373 18 current_version()
pascal@24373 19 {
pascal@24373 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24373 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24373 22 }
pascal@24373 23
pascal@20526 24 # Rules to configure and make the package.
pascal@20526 25 compile_rules()
pascal@20526 26 {
pascal@20526 27 ./setup.py install --root=$DESTDIR
pascal@20526 28 }
pascal@20526 29
pascal@20526 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20526 31 genpkg_rules()
pascal@20526 32 {
Hans-G?nter@23942 33 cp -a $install/usr $fs
pascal@20526 34 }