SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lxrandr"

# SliTaz package receipt.

PACKAGE="lxrandr"
VERSION="0.3.2"
CATEGORY="utilities"
TAGS="LXDE"
SHORT_DESC="LXDE monitor configuration tool."
MAINTAINER="gokhlayeh@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.lxde.org/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$SF_MIRROR/lxde/$TARBALL"

DEPENDS="gtk+ xorg-xrandr"
BUILD_DEPENDS="gtk+-dev xorg-libXrandr-dev"

HOST_ARCH="i486 arm"

current_version()
{
    wget -O - https://sourceforge.net/projects/lxde/files/LXRandR%20%28monitor%20config%20tool%29/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules()
{
    # Fix sources.
    echo "Icon=video-display" >> data/lxrandr.desktop.in 
    touch po/stamp-it 

    ./configure        \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/share    $fs/usr

    # Remove man pages and locales
    rm -rf                $fs/usr/share/man
    rm -rf                $fs/usr/share/locale

    sed -i 's|^Icon=.*$|Icon=preferences-desktop-display|' \
        $fs/usr/share/applications/lxrandr.desktop
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)