From 5a1d923a220b3615123671d28ed5ce0c035fabc4 Mon Sep 17 00:00:00 2001 From: Michiel van Wessem Date: Wed, 12 May 2010 17:44:33 +0200 Subject: office/abook: Updated for version 0.5.6 --- office/abook/abook.SlackBuild | 30 ++++++++++++++++++------------ office/abook/abook.info | 6 +++--- 2 files changed, 21 insertions(+), 15 deletions(-) (limited to 'office/abook') diff --git a/office/abook/abook.SlackBuild b/office/abook/abook.SlackBuild index e06ff8705a..84a04aa07d 100644 --- a/office/abook/abook.SlackBuild +++ b/office/abook/abook.SlackBuild @@ -3,6 +3,8 @@ # Slackware build script for abook # Copyright 2006 Martin Lefebvre +# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom + # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,15 +24,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by the SlackBuilds.org project - -set -e - PRGNAM=abook VERSION=0.5.6 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -42,31 +41,38 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +# Exit on most errors. +set -e + + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz - cd $PRGNAM-$VERSION chown -R root:root . -chmod -R a-s,u+w,go+r-w . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ - --localstatedir=/var + --mandir=/usr/man \ + --localstatedir=/var \ make make install-strip DESTDIR=$PKG -if [ -d $PKG/usr/man ]; then - ( cd $PKG/usr/man - find . -type f -iname '*.[1-9]' -exec gzip -9 {} \; - ) -fi +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a ABOUT-NLS ANNOUNCE AUTHORS BUGS COPYING ChangeLog FAQ INSTALL NEWS \ diff --git a/office/abook/abook.info b/office/abook/abook.info index cb4a27f91c..a1dc6ee150 100644 --- a/office/abook/abook.info +++ b/office/abook/abook.info @@ -1,8 +1,8 @@ PRGNAM="abook" VERSION="0.5.6" HOMEPAGE="http://abook.sourceforge.net" -DOWNLOAD="http://dl.sourceforge.net/abook/abook-0.5.6.tar.gz" +DOWNLOAD="http://downloads.sourceforge.net/abook/abook-0.5.6.tar.gz" MD5SUM="87d25df96864a7c507a4965e6d1da49d" -MAINTAINER="Martin Lefebvre" -EMAIL="dadexter@gmail.com" +MAINTAINER="Michiel van Wessem" +EMAIL="michiel@slackbuilds.org" APPROVED="rworkman" -- cgit v1.2.3-65-gdbad