mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/barry: Added to 12.0 repository
This commit is contained in:
parent
4f53ee36b2
commit
5367554b70
5 changed files with 120 additions and 0 deletions
4
libraries/barry/README
Normal file
4
libraries/barry/README
Normal file
|
@ -0,0 +1,4 @@
|
|||
Barry is a GPL C++ library for interfacing with the RIM BlackBerry
|
||||
Handheld. It comes with a command line tool for exploring the device
|
||||
and a GUI for making quick backups. This project's goal is to create
|
||||
a fully functional syncing mechanism on Linux.
|
73
libraries/barry/barry.SlackBuild
Normal file
73
libraries/barry/barry.SlackBuild
Normal file
|
@ -0,0 +1,73 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
## Barry is a GPL C++ library for interfacing with the RIM BlackBerry
|
||||
## Handheld. It comes with a command line tool for exploring the device
|
||||
## and a GUI for making quick backups. This project's goal is to create
|
||||
## a fully functional syncing mechanism on Linux.
|
||||
## http://sourceforge.net/projects/barry/
|
||||
##
|
||||
## Written by "Vincent Batts <vbatts@batts.mine.nu>"
|
||||
|
||||
VERSION=0.11
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-barry
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf barry-$VERSION
|
||||
tar xvf $CWD/barry-$VERSION.tar.bz2
|
||||
cd barry-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R a-s,u+rw,go+r-w .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/man \
|
||||
--build=i486-slackware-linux
|
||||
|
||||
make || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
gzip -9 $PKG/usr/man/man?/*.?
|
||||
|
||||
mkdir -p $PKG/usr/doc/barry-$VERSION
|
||||
cp -a README INSTALL TODO COPYING AUTHORS NEWS ChangeLog \
|
||||
$PKG/usr/doc/barry-$VERSION
|
||||
|
||||
mkdir -p $PKG/etc/udev/rules.d/
|
||||
cp -a udev/10-blackberry.rules udev/99-barry-perms \
|
||||
$PKG/etc/udev/rules.d/
|
||||
|
||||
mkdir -p $PKG/etc/modprobe.d
|
||||
echo "blacklist berry-charge" > $PKG/etc/modprobe.d/barry.new
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/barry-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
libraries/barry/barry.info
Normal file
8
libraries/barry/barry.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="barry"
|
||||
VERSION="0.11"
|
||||
HOMEPAGE="http://sourceforge.net/projects/barry/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/barry/barry-0.11.tar.bz2"
|
||||
MD5SUM="a42db74aa7f900958d5d2a527b55f50c"
|
||||
MAINTAINER="Vincent Batts"
|
||||
EMAIL="vbatts@batts.mine.nu"
|
||||
APPROVED="rworkman"
|
16
libraries/barry/doinst.sh
Normal file
16
libraries/barry/doinst.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/modprobe.d/barry.new
|
||||
|
19
libraries/barry/slack-desc
Normal file
19
libraries/barry/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
barry: barry (GPL C++ library for interfacing the BlackBerry)
|
||||
barry:
|
||||
barry: Barry is a GPL C++ library for interfacing with the RIM BlackBerry
|
||||
barry: Handheld. It comes with a command line tool for exploring the device
|
||||
barry: and a GUI for making quick backups. This project's goal is to create
|
||||
barry: a fully functional syncing mechanism on Linux.
|
||||
barry:
|
||||
barry: Homepage: http://sourceforge.net/projects/barry/
|
||||
barry:
|
||||
barry:
|
||||
barry:
|
Loading…
Reference in a new issue