Browse Source

kde/basket: Upgraded to basked-1.81.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent
commit
531c900344
  1. 1
      kde/basket/basket-1.0.3.1.tar.gz.sha1
  2. 1
      kde/basket/basket-1.81.tar.bz2.sha1
  3. 43
      kde/basket/basket.SlackBuild
  4. 4
      kde/basket/doinst.sh

1
kde/basket/basket-1.0.3.1.tar.gz.sha1

@ -1 +0,0 @@
0d0b4faa014770748f28868609671154121c42e2 basket-1.0.3.1.tar.gz

1
kde/basket/basket-1.81.tar.bz2.sha1

@ -0,0 +1 @@
209d92048523f341259d79510fa56977690e5dfc basket-1.81.tar.bz2

43
kde/basket/basket.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
# Copyright (C) 2009,2011 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,20 +26,21 @@
# Source package infos
NAMESRC=${NAMESRC:-basket}
VERSION=${VERSION:-1.0.3.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
VERSION=${VERSION:-1.81}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://basket.kde.org/downloads/$ARCHIVE}
# Built package infos
NAMETGZ=${NAMETGZ:-basket}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-i486}
NAMEPKG=${NAMEPKG:-basket}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
JOBS=${JOBS:-1}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -59,6 +60,9 @@ case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
@ -66,7 +70,8 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget "$WGET"
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -78,34 +83,28 @@ tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr
make -j 3
cmake -DCMAKE_INSTALL_PREFIX=/usr
make -j $JOBS
make install DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Fix Kontact integration in KDE 3.5.9 <http://bugs.archlinux.org/task/9761>.
sed -i 's/^X-KDE-KontactPluginVersion=[0-5]$/X-KDE-KontactPluginVersion=6/' \
$PKG/usr/share/services/kontact/basket.desktop
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 \
AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
$PKG/usr/doc/$NAME
install -m 644 AUTHORS COPYING README TODO $PKG/usr/doc/$NAME
# Copy slack-desc file
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

4
kde/basket/doinst.sh

@ -0,0 +1,4 @@
#!/bin/sh
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
fi
Loading…
Cancel
Save