wok view lxrandr/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents d33c3c211ef8
children 180119c209e8
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://wiki.lxde.org/en/LXRandR"
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 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/lxde/files/LXRandR%20%28monitor%20config%20tool%29/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Fix sources.
31 echo "Icon=video-display" >> data/lxrandr.desktop.in
32 touch po/stamp-it
34 ./configure \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/share $fs/usr
47 # Remove man pages and locales
48 rm -rf $fs/usr/share/man
49 rm -rf $fs/usr/share/locale
51 sed -i 's|^Icon=.*$|Icon=preferences-desktop-display|' \
52 $fs/usr/share/applications/lxrandr.desktop
53 }