summaryrefslogtreecommitdiff
path: root/desktop/autorandr/autorandr.SlackBuild
diff options
context:
space:
mode:
authorJulian Grinblat <julian@dotcore.co.il>2020-11-21 00:41:49 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-11-21 00:41:49 +0700
commit5c9deb9e7bc4e61c17bdc683a7ccefbb990eef43 (patch)
tree9df074b5abd8615d8a0d8d1ce2c3100bed11dd12 /desktop/autorandr/autorandr.SlackBuild
parent486a639748a054a34d9ef3c7617a6b6008e3465c (diff)
downloadslackbuilds-5c9deb9e7bc4e61c17bdc683a7ccefbb990eef43.tar.gz
desktop/autorandr: Updated for version 1.11.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/autorandr/autorandr.SlackBuild')
-rw-r--r--desktop/autorandr/autorandr.SlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/autorandr/autorandr.SlackBuild b/desktop/autorandr/autorandr.SlackBuild
index dcf8055885..ff53d4584c 100644
--- a/desktop/autorandr/autorandr.SlackBuild
+++ b/desktop/autorandr/autorandr.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=autorandr
-VERSION=${VERSION:-1.10.1}
+VERSION=${VERSION:-1.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,8 +69,10 @@ 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 PREFIX=/usr MANDIR=/usr/man/man1 DESTDIR=$PKG
+make install $TARGETS PREFIX=/usr MANDIR=/usr/man/man1 DESTDIR=$PKG
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