wok view lxrandr/receipt @ rev 25707
Up perl-net-pcap (0.21), qtermwidget (0.5.1), youtube-dl-gui (0.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 05 14:08:34 2024 +0000 (3 months ago) |
parents | 180119c209e8 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxrandr"
4 VERSION="0.3.2"
5 CATEGORY="utilities"
6 TAGS="LXDE"
7 SHORT_DESC="LXDE monitor configuration tool."
8 MAINTAINER="gokhlayeh@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.lxde.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
15 DEPENDS="gtk+ xorg-xrandr"
16 BUILD_DEPENDS="gtk+-dev xorg-libXrandr-dev"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/lxde/files/LXRandR%20%28monitor%20config%20tool%29/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
25 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Fix sources.
32 echo "Icon=video-display" >> data/lxrandr.desktop.in
33 touch po/stamp-it
35 ./configure \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/share $fs/usr
48 # Remove man pages and locales
49 rm -rf $fs/usr/share/man
50 rm -rf $fs/usr/share/locale
52 sed -i 's|^Icon=.*$|Icon=preferences-desktop-display|' \
53 $fs/usr/share/applications/lxrandr.desktop
54 }