diff options
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 eafff068cc143..91222b5b5482a 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 |