aboutsummaryrefslogtreecommitdiff
path: root/audio/volumeicon/volumeicon.SlackBuild
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2014-12-26 00:14:40 +0700
committerRobby Workman <rworkman@slackbuilds.org>2014-12-27 23:16:19 -0600
commit5c62be2fe7ca75019c64805e19a76b0e29ec0546 (patch)
treee2d19b532eab5421efbad60104151ef9e1d9ac6b /audio/volumeicon/volumeicon.SlackBuild
parent40c2cb1bcfada6a947ccd8fb54c936582715d15b (diff)
audio/volumeicon: Add option to built against GTK+2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/volumeicon/volumeicon.SlackBuild')
-rw-r--r--audio/volumeicon/volumeicon.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/audio/volumeicon/volumeicon.SlackBuild b/audio/volumeicon/volumeicon.SlackBuild
index 667088d7ca35..01b1b4ff20d1 100644
--- a/audio/volumeicon/volumeicon.SlackBuild
+++ b/audio/volumeicon/volumeicon.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
# Slackware build script for volumeicon
-
# Written by Daniel Cash (Original Author)
# Copyright 2014 Aaditya Bagga <aaditya_gnulinux@zoho.com>
@@ -26,7 +25,7 @@
PRGNAM=volumeicon
VERSION=${VERSION:-0.5.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -74,6 +73,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Check for GTK2
+if [ "$GTK2" == "yes" ]; then
+ # Patch courtesy https://aur.archlinux.org/packages/volumeicon-gtk2/
+ patch -Np2 -b -z .orig -i $CWD/gtk2.patch
+ autoreconf -fi
+fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \