wok-6.x view dciutil/receipt @ rev 24782

Up alpine (2.25)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 20 12:08:15 2022 +0000 (2022-03-20)
parents 84f7eb544a14
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dciutil"
4 VERSION="0.9.8"
5 CATEGORY="misc"
6 SHORT_DESC="Query and change Linux monitor settings using DDC/CI and USB."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.ddcutil.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}tarballs/ddcutil-$VERSION.tar.gz"
14 DEPENDS="glib libdrm libusb libxcb xorg-libXrandr zlib"
15 BUILD_DEPENDS="file glib-dev libdrm-dev libtool libusb-dev
16 pkg-config python-dev udev-dev xorg-dev xorg-xrandr"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/ddcutil.*release [0-9]/!d;s|.*release ||;s| .*||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 find | grep akefile | xargs sed -i '/+= -Wpedantic/d;s| -Wpedantic||'
29 sed -i 's|grep suse|grep -s suse|' \
30 configure*
31 sed -i '/linux\/uhid/d' \
32 src/usb_util/libusb_reports.c
34 ./configure \
35 --prefix=/usr \
36 --host=i686-pc-linux-gnu \
37 --build=i686-pc-linux-gnu \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 cp -a $install/usr $fs
48 }