wok-current annotate lxrandr/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents d33c3c211ef8
children 180119c209e8
rev   line source
gokhlayeh@5955 1 # SliTaz package receipt.
gokhlayeh@5955 2
gokhlayeh@5955 3 PACKAGE="lxrandr"
Hans-G?nter@23151 4 VERSION="0.3.2"
gokhlayeh@5955 5 CATEGORY="utilities"
Hans-G?nter@23151 6 TAGS="LXDE"
Hans-G?nter@23151 7 SHORT_DESC="LXDE monitor configuration tool."
gokhlayeh@7034 8 MAINTAINER="gokhlayeh@slitaz.org"
pascal@15000 9 LICENSE="GPL2"
pascal@23810 10 WEB_SITE="https://wiki.lxde.org/en/LXRandR"
Hans-G?nter@23151 11
psychomaniak@17509 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
gokhlayeh@5955 13 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
gokhlayeh@5955 14
pascal@15000 15 DEPENDS="gtk+ xorg-xrandr"
pankso@16261 16 BUILD_DEPENDS="gtk+-dev xorg-libXrandr-dev"
pascal@15000 17
Hans-G?nter@23151 18 HOST_ARCH="i486 arm"
Hans-G?nter@23151 19
pascal@24071 20 current_version()
pascal@24071 21 {
pascal@24071 22 wget -O - https://sourceforge.net/projects/lxde/files/LXRandR%20%28monitor%20config%20tool%29/ 2>/dev/null | \
pascal@24071 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24071 24 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24071 25 }
pascal@24071 26
gokhlayeh@5955 27 # Rules to configure and make the package.
gokhlayeh@5955 28 compile_rules()
gokhlayeh@5955 29 {
pankso@16261 30 # Fix sources.
gokhlayeh@5955 31 echo "Icon=video-display" >> data/lxrandr.desktop.in
gokhlayeh@8340 32 touch po/stamp-it
Hans-G?nter@23151 33
Hans-G?nter@23151 34 ./configure \
gokhlayeh@5955 35 $CONFIGURE_ARGS &&
Hans-G?nter@23151 36 make &&
Hans-G?nter@23151 37 make install
gokhlayeh@5955 38 }
gokhlayeh@5955 39
gokhlayeh@5955 40 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@5955 41 genpkg_rules()
gokhlayeh@5955 42 {
gokhlayeh@5955 43 mkdir -p $fs/usr
Hans-G?nter@23151 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23151 45 cp -a $install/usr/share $fs/usr
gokhlayeh@5955 46
Hans-G?nter@23151 47 # Remove man pages and locales
Hans-G?nter@23151 48 rm -rf $fs/usr/share/man
Hans-G?nter@23151 49 rm -rf $fs/usr/share/locale
al@18545 50
al@18545 51 sed -i 's|^Icon=.*$|Icon=preferences-desktop-display|' \
al@18545 52 $fs/usr/share/applications/lxrandr.desktop
gokhlayeh@5955 53 }