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