diff options
Diffstat (limited to 'system/read-edid/read-edid.SlackBuild')
-rw-r--r-- | system/read-edid/read-edid.SlackBuild | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/system/read-edid/read-edid.SlackBuild b/system/read-edid/read-edid.SlackBuild index 0d8369e95f..6f4465bee2 100644 --- a/system/read-edid/read-edid.SlackBuild +++ b/system/read-edid/read-edid.SlackBuild @@ -1,11 +1,13 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for read-edid -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20210824 bkw: BUILD=2, fix build on -current + # 20190108 bkw: # - update README: mention the /sys/class/drm stuff and edid-decode. # - fix README and slack-desc formatting. @@ -14,10 +16,13 @@ # 20150505 bkw: update for v3.0.2 (COPYING => LICENSE too) +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=read-edid VERSION=${VERSION:-3.0.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -27,7 +32,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -58,6 +67,9 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +# make all but one declaration of 'int quiet' an extern +patch -p1 < $CWD/gcc10fix.diff + mkdir -p build cd build cmake \ @@ -83,4 +95,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |