diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-06-12 03:28:10 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-12 07:47:26 -0500 |
commit | 8865baedef5c6492905fe0465fc83a82204168a6 (patch) | |
tree | eb1182f6438558b8473fd84fd152fd424dbe549e /network/RSSOwl/RSSOwl.SlackBuild | |
parent | 05994665a8166a9376888a741bdb2c8c1c56af07 (diff) | |
download | slackbuilds-8865baedef5c6492905fe0465fc83a82204168a6.tar.gz |
network/RSSOwl: Updated for version 2.0.5.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/RSSOwl/RSSOwl.SlackBuild')
-rw-r--r-- | network/RSSOwl/RSSOwl.SlackBuild | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/network/RSSOwl/RSSOwl.SlackBuild b/network/RSSOwl/RSSOwl.SlackBuild index eafff068cc..91222b5b54 100644 --- a/network/RSSOwl/RSSOwl.SlackBuild +++ b/network/RSSOwl/RSSOwl.SlackBuild @@ -6,8 +6,7 @@ # Maintained by Erik Hanson, erik@slackbuilds.org 2010- PRGNAM=RSSOwl -VERSION=${VERSION:-2.0.4} -ARCH=${ARCH:-i486} +VERSION=${VERSION:-2.0.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -16,12 +15,23 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + if [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" SRC_ARCH="x86_64.zip" -else +elif [ "$ARCH" = "i486" ]; then LIBDIRSUFFIX="" SRC_ARCH="zip" +else + printf "$ARCH is not supported...\n" + exit 1 fi set -e @@ -42,30 +52,27 @@ find . \ mkdir -p $PKG/usr/bin cat > $PKG/usr/bin/$PRGNAM << EOF #!/bin/sh - cd /usr/lib${LIBDIRSUFFIX}/$PRGNAM/ ./$PRGNAM - EOF -chmod +x $PKG/usr/bin/$PRGNAM +chmod 0755 $PKG/usr/bin/$PRGNAM mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM -cp -av * $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/ +cp -av * $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM -mkdir -p $PKG/usr/share/pixmaps/ +mkdir -p $PKG/usr/share/pixmaps cp -av icon.xpm $PKG/usr/share/pixmaps/$PRGNAM.xpm mkdir -p $PKG/usr/share/applications/ cat > $PKG/usr/share/applications/${PRGNAM}.desktop << EOF [Desktop Entry] -Encoding=UTF-8 Exec=$PRGNAM -Icon=/usr/share/pixmaps/$PRGNAM.xpm +Icon=$PRGNAM Type=Application -Categories=Application;Network; +Categories=Network; Name=$PRGNAM GenericName=RSS News Reader -MimeType=application/rss+xml +MimeType=application/rss+xml; X-KDE-StartupNotify=true EOF |