SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dciutil"

# SliTaz package receipt.

PACKAGE="dciutil"
VERSION="0.9.8"
CATEGORY="misc"
SHORT_DESC="Query and change Linux monitor settings using DDC/CI and USB."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="http://www.ddcutil.com/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="${WEB_SITE}tarballs/ddcutil-$VERSION.tar.gz"

DEPENDS="glib libdrm libusb libxcb xorg-libXrandr zlib"
BUILD_DEPENDS="file glib-dev libdrm-dev libtool libusb-dev 
    pkg-config python-dev udev-dev xorg-dev xorg-xrandr"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/ddcutil.*release [0-9]/!d;s|.*release ||;s| .*||'
}

# Rules to configure and make the package.
compile_rules()
{
    find | grep akefile | xargs sed -i '/+= -Wpedantic/d;s| -Wpedantic||'
    sed -i 's|grep suse|grep -s suse|' \
        configure*
    sed -i '/linux\/uhid/d' \
        src/usb_util/libusb_reports.c

    ./configure                \
        --prefix=/usr            \
        --host=i686-pc-linux-gnu    \
        --build=i686-pc-linux-gnu    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr    $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)