wok annotate lxrandr/receipt @ rev 25704

BootProg: contiguous file support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 04 16:57:31 2024 +0000 (3 weeks ago)
parents 180119c209e8
children
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@25087 10 WEB_SITE="https://www.lxde.org/"
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@25606 20 # What is the latest version available today?
pascal@24071 21 current_version()
pascal@24071 22 {
pascal@24071 23 wget -O - https://sourceforge.net/projects/lxde/files/LXRandR%20%28monitor%20config%20tool%29/ 2>/dev/null | \
pascal@25606 24 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24071 25 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24071 26 }
pascal@24071 27
gokhlayeh@5955 28 # Rules to configure and make the package.
gokhlayeh@5955 29 compile_rules()
gokhlayeh@5955 30 {
pankso@16261 31 # Fix sources.
gokhlayeh@5955 32 echo "Icon=video-display" >> data/lxrandr.desktop.in
gokhlayeh@8340 33 touch po/stamp-it
Hans-G?nter@23151 34
Hans-G?nter@23151 35 ./configure \
gokhlayeh@5955 36 $CONFIGURE_ARGS &&
Hans-G?nter@23151 37 make &&
Hans-G?nter@23151 38 make install
gokhlayeh@5955 39 }
gokhlayeh@5955 40
gokhlayeh@5955 41 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@5955 42 genpkg_rules()
gokhlayeh@5955 43 {
gokhlayeh@5955 44 mkdir -p $fs/usr
Hans-G?nter@23151 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23151 46 cp -a $install/usr/share $fs/usr
gokhlayeh@5955 47
Hans-G?nter@23151 48 # Remove man pages and locales
Hans-G?nter@23151 49 rm -rf $fs/usr/share/man
Hans-G?nter@23151 50 rm -rf $fs/usr/share/locale
al@18545 51
al@18545 52 sed -i 's|^Icon=.*$|Icon=preferences-desktop-display|' \
al@18545 53 $fs/usr/share/applications/lxrandr.desktop
gokhlayeh@5955 54 }