summaryrefslogtreecommitdiffstats
path: root/desktop/autorandr/autorandr.SlackBuild
diff options
context:
space:
mode:
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