aboutsummaryrefslogtreecommitdiff
path: root/system/sboui/sboui.SlackBuild
diff options
context:
space:
mode:
authorDaniel Prosser <dpross1100@msn.com>2018-11-29 21:55:13 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-01 07:27:51 +0700
commit3eff2e881187e1f6ac8af0a505eeebface9bab75 (patch)
tree8e071b1c6857339efccfde86f348e0dd843951ad /system/sboui/sboui.SlackBuild
parent638110f24603685f8f0d45dad8962de68ce42e39 (diff)
system/sboui: Updated for version 2.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/sboui/sboui.SlackBuild')
-rw-r--r--system/sboui/sboui.SlackBuild32
1 files changed, 27 insertions, 5 deletions
diff --git a/system/sboui/sboui.SlackBuild b/system/sboui/sboui.SlackBuild
index 7651d38bf9445..b1903adfdd1e9 100644
--- a/system/sboui/sboui.SlackBuild
+++ b/system/sboui/sboui.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sboui
-VERSION=${VERSION:-1.1}
+VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,15 +69,37 @@ 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 {} \;
+# Build options
+USE_NINJA="${USE_NINJA:-no}"
+GRAPHICAL_SU="${GRAPHICAL_SU:-kdesu}"
+TERMINAL_EMULATOR="${TERMINAL_EMULATOR:-xterm}"
+INSTALL_SYSTRAY_NOTIFIER="${INSTALL_SYSTRAY_NOTIFIER:-no}"
+if [ "$USE_NINJA" == "yes" ]; then
+ GENERATOR="Ninja"
+ BUILDCMD="ninja"
+else
+ GENERATOR="Unix Makefiles"
+ BUILDCMD="make"
+fi
+if [ "$INSTALL_SYSTRAY_NOTIFIER" == "yes" ]; then
+ NOTIFIER="ON"
+else
+ NOTIFIER="OFF"
+fi
+
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release ..
- make
- make install DESTDIR=$PKG
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_BUILD_TYPE:STRING="Release" \
+ -DGRAPHICAL_SU:STRING="$GRAPHICAL_SU" \
+ -DTERMINAL_EMULATOR:STRING="$TERMINAL_EMULATOR" \
+ -DINSTALL_SYSTRAY_NOTIFIER:BOOL="$NOTIFIER" \
+ -G "$GENERATOR" ..
+ $BUILDCMD
+ DESTDIR=$PKG $BUILDCMD install
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \