diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:37:02 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:37:02 +0200 |
commit | b1ffa53fe51d79d3299aa2b231c69d8566e8a356 (patch) | |
tree | 7f7c80eea625631ec38225bdbde4b48780675b9c /network/liferea/liferea.SlackBuild | |
parent | d3ae43929b939e154d571250dde6d39eb49073d5 (diff) |
network/liferea: Updated for version 1.4.28
Diffstat (limited to 'network/liferea/liferea.SlackBuild')
-rw-r--r-- | network/liferea/liferea.SlackBuild | 82 |
1 files changed, 52 insertions, 30 deletions
diff --git a/network/liferea/liferea.SlackBuild b/network/liferea/liferea.SlackBuild index e4cacccaee7cf..d1cbe7149ca18 100644 --- a/network/liferea/liferea.SlackBuild +++ b/network/liferea/liferea.SlackBuild @@ -1,24 +1,51 @@ -#!/bin/sh -eu - +#!/bin/sh +# # Slackware build script for liferea -# Written by Erik Hanson erik@slackbuilds.org +# +# Copyright 2009-2010 Erik W. Hanson, Minneapolis, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=liferea -VERSION=1.4.20 +VERSION=1.4.28 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` + +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -eu + rm -rf $PKG mkdir -p $TMP $PKG cd $TMP @@ -28,15 +55,25 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . +GTKHTML=${GTKHTML:-"yes"} +WEBKIT=${WEBKIT:-"no"} +XULRUNNER=${XULRUNNER:-"no"} +LUA=${LUA:-"no"} + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --disable-gtkhtml2 \ - --disable-webkit \ - --disable-nm + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-gtkhtml2=$GTKHTML \ + --enable-webkit=$WEBKIT \ + --enable-gecko=$XULRUNNER \ + --enable-lua=$LUA \ + --disable-nm \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG @@ -44,29 +81,14 @@ make install-strip DESTDIR=$PKG gzip -9 $PKG/usr/man/man?/*.? gzip -9 $PKG/usr/man/pl/man?/*.? -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install -cp -ar AUTHORS COPYING ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -ar AUTHORS COPYING ChangeLog INSTALL NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cat $CWD/slack-desc > $PKG/install/slack-desc - -cat >> $PKG/install/doinst.sh << "EOF" -mkdir -p etc/gconf/gconf.xml.defaults -GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" -export GCONF_CONFIG_SOURCE -EOF - -for SCHEMA in $(find $PKG/etc/gconf/schemas -name "*.schemas") ; do - ISCHEMA=$(echo $SCHEMA | cut -d"/" -f5-) - echo "gconftool-2 --makefile-install-rule $ISCHEMA" >> $PKG/install/doinst.sh -done - -for ENTRY in $(find $PKG/etc/gconf/schemas -name "*.entries") ; do - IENTRY=$(echo $ENTRY | cut -d"/" -f5-) - echo "gconftool-2 --direct --config-source=\$GCONF_CONFIG_SOURCE --load $IENTRY" >> $PKG/install/doinst.sh -done - -echo "unset GCONF_CONFIG_SOURCE" >> $PKG/install/doinst.sh +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/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |