aboutsummaryrefslogtreecommitdiff
path: root/libraries/barry/barry.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/barry/barry.SlackBuild')
-rw-r--r--libraries/barry/barry.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/libraries/barry/barry.SlackBuild b/libraries/barry/barry.SlackBuild
index ac0ae69d423b..12ad5e2ce503 100644
--- a/libraries/barry/barry.SlackBuild
+++ b/libraries/barry/barry.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh
## Barry is a GPL C++ library for interfacing with the RIM BlackBerry
## Handheld. It comes with a command line tool for exploring the device
@@ -12,18 +12,17 @@
## to "Heinz Wiesinger <HMWiesinger@gmx.at>"
# Modified by Robby Workman <rworkman@slackbuilds.org>
+# Updated by mario <mario@slackverse.org>
PRGNAM=barry
-VERSION=0.16
+VERSION=${VERSION:-0.17.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -41,11 +40,10 @@ BARRY_GROUP=${BARRY_GROUP:-plugdev}
# Enable opensync-plugin?
OPENSYNC=${OPENSYNC:-no}
-if [ "$OPENSYNC" = "no" ]; then
- opensync_opt="dis"
-else
- opensync_opt="en"
-fi
+case "$OPENSYNC" in
+ no) opensync_opt="dis" ;;
+ *) opensync_opt="en" ;;
+esac
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -113,7 +111,7 @@ done
# berry-charge conflicts with barry
mkdir -p $PKG/etc/modprobe.d
-printf "blacklist berry-charge\n" > $PKG/etc/modprobe.d/barry.conf.new
+printf "blacklist berry-charge\n" > $PKG/etc/modprobe.d/barry.conf
# Install udev rules
mkdir -p $PKG/lib/udev/rules.d/