aboutsummaryrefslogtreecommitdiff
path: root/libraries/barry/barry.SlackBuild
diff options
context:
space:
mode:
authormario <mario@slackverse.org>2011-06-19 01:02:59 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-06-19 01:02:59 -0500
commit905bc770052d86970ddc2345d772b24c4f49ce0e (patch)
tree52f62a399e3af14ff69a51a648268cc627069a1f /libraries/barry/barry.SlackBuild
parentcdb2cf9a1dc3872693ec2df2381d6515707ddb25 (diff)
libraries/barry: Updated for version 0.17.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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 ac0ae69d423be..12ad5e2ce503c 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/