aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJulian Grinblat <julian@dotcore.co.il>2023-01-24 06:22:58 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-28 08:23:02 +0700
commit406441c83c378914884cfac7d81c619b166e8965 (patch)
tree7509bfb0ab1195df7330edf91ce5385190c35b6a /desktop
parent11180bb3d787e9168f6b691ee120fc4fdf82f3fd (diff)
desktop/autorandr: Updated for version 1.13.2.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/autorandr/autorandr.SlackBuild14
-rw-r--r--desktop/autorandr/autorandr.info6
2 files changed, 12 insertions, 8 deletions
diff --git a/desktop/autorandr/autorandr.SlackBuild b/desktop/autorandr/autorandr.SlackBuild
index ad74d2caceaa..66dc71e1ee45 100644
--- a/desktop/autorandr/autorandr.SlackBuild
+++ b/desktop/autorandr/autorandr.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=autorandr
-VERSION=${VERSION:-1.12.1}
+VERSION=${VERSION:-1.13.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -50,6 +50,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# Some of the TARGETS can generate binaries (for example, launcher generates autorandr-launcher)
+# This is not always noarch
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -79,10 +81,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-[ -n "$TARGETS" ] && TARGETS="TARGETS=$TARGETS"
-
-make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
-make install $TARGETS PREFIX=/usr MANDIR=/usr/man/man1 DESTDIR=$PKG
+if [[ -n "$TARGETS" ]]; then
+ make install CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" "TARGETS=$TARGETS" PREFIX=/usr MANDIR=/usr/man/man1 DESTDIR=$PKG
+else
+ make install CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" PREFIX=/usr MANDIR=/usr/man/man1 DESTDIR=$PKG
+fi
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/desktop/autorandr/autorandr.info b/desktop/autorandr/autorandr.info
index ce4f9666b930..4fc5ef885bed 100644
--- a/desktop/autorandr/autorandr.info
+++ b/desktop/autorandr/autorandr.info
@@ -1,8 +1,8 @@
PRGNAM="autorandr"
-VERSION="1.12.1"
+VERSION="1.13.2"
HOMEPAGE="https://github.com/phillipberndt/autorandr"
-DOWNLOAD="https://github.com/phillipberndt/autorandr/archive/1.12.1/autorandr-1.12.1.tar.gz"
-MD5SUM="33cec67ce6062e9cebf5018db20a1cba"
+DOWNLOAD="https://github.com/phillipberndt/autorandr/archive/1.13.2/autorandr-1.13.2.tar.gz"
+MD5SUM="ebcc16d662c51b04b5ae30ecd0083402"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""