From 905bc770052d86970ddc2345d772b24c4f49ce0e Mon Sep 17 00:00:00 2001 From: mario Date: Sun, 19 Jun 2011 01:02:59 -0500 Subject: libraries/barry: Updated for version 0.17.1. Signed-off-by: Robby Workman --- libraries/barry/barry.SlackBuild | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'libraries/barry/barry.SlackBuild') diff --git a/libraries/barry/barry.SlackBuild b/libraries/barry/barry.SlackBuild index ac0ae69d42..12ad5e2ce5 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 " # Modified by Robby Workman +# Updated by mario 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/ -- cgit v1.2.3