mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
office/abiword: Updated for version 2.6.4
This commit is contained in:
parent
5d761ac168
commit
b123beffc8
5 changed files with 51 additions and 46 deletions
|
@ -2,6 +2,6 @@ The AbiWord word processor is a lightweight and featureful
|
||||||
productivity tool that is suitable for a wide variety of word
|
productivity tool that is suitable for a wide variety of word
|
||||||
processing tasks.
|
processing tasks.
|
||||||
|
|
||||||
AbiWord requires libgnomecanvas and libgnomeprintui, and due
|
AbiWord requires gail, wv, libgnomecanvas, libgnomeprintui,
|
||||||
to those requirements, libgnomeprint and libgnomecups, all of
|
libgnomeprint, libgnomecups, and enchant, all of which are
|
||||||
which are available at SlackBuilds.org
|
available at SlackBuilds.org
|
||||||
|
|
|
@ -22,13 +22,14 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
# Modified by the SlackBuilds.org project
|
# Now maintained by Robby Workman <rworkman@slackbuilds.org>
|
||||||
|
|
||||||
PRGNAM=abiword
|
PRGNAM=abiword
|
||||||
VERSION=2.4.6
|
VERSION=2.6.4
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
@ -36,18 +37,26 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "s390" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2"
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP || exit 1
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION/abi || exit 1
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
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" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
@ -55,31 +64,29 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
--disable-gnome \
|
--disable-gnome \
|
||||||
--disable-enchant \
|
--enable-threads \
|
||||||
|| exit 1
|
--enable-static=no \
|
||||||
|
--build=$ARCH-slackware-linux \
|
||||||
make || exit 1
|
--host=$ARCH-slackware-linux
|
||||||
make install-strip DESTDIR=$PKG || exit 1
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
make
|
||||||
cp -a BUILD.TXT BiDiReadme.txt COPYING COPYRIGHT.TXT CREDITS.TXT \
|
make install DESTDIR=$PKG
|
||||||
README.TXT ../abiword-docs/Tutorials ../abiword-docs/Manual \
|
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|
||||||
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
|
|
||||||
# Install the man page
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
mkdir -p $PKG/usr/man/man1
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
cat ../abiword-docs/man/abiword.1 | gzip -9 > $PKG/usr/man/man1/abiword.1.gz
|
|
||||||
|
|
||||||
# Empty directory can go (unless someone has a valid reason for it to stay)
|
|
||||||
# /usr/lib/bonobo <-- nothing is in /usr/lib at all otherwise
|
|
||||||
rm -rf $PKG/usr/lib
|
|
||||||
|
|
||||||
# No need to clutter up the toplevel /usr/share/icons
|
# No need to clutter up the toplevel /usr/share/icons
|
||||||
mv $PKG/usr/share/icons $PKG/usr/share/pixmaps
|
mv $PKG/usr/share/icons $PKG/usr/share/pixmaps
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a BUILD.TXT BiDiReadme.txt COPYING COPYRIGHT.TXT CREDITS.TXT \
|
||||||
|
README.TXT $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="abiword"
|
PRGNAM="abiword"
|
||||||
VERSION="2.4.6"
|
VERSION="2.6.4"
|
||||||
HOMEPAGE="http://www.abisource.com"
|
HOMEPAGE="http://www.abisource.com"
|
||||||
DOWNLOAD="http://www.abisource.com/downloads/abiword/2.4.6/source/abiword-2.4.6.tar.gz"
|
DOWNLOAD="http://www.abisource.com/downloads/abiword/2.6.4/source/abiword-2.6.4.tar.gz"
|
||||||
MD5SUM="30fbd0a9b539f15f54f90d3812a75266"
|
MD5SUM="16748b2d6e318e0e2a25581005e1943a"
|
||||||
MAINTAINER="Martin Lefebvre"
|
MAINTAINER="Robby Workman"
|
||||||
EMAIL="dadexter@sekurity.com"
|
EMAIL="rw@rlworkman.net"
|
||||||
APPROVED="rworkman"
|
APPROVED="Erik Hanson"
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
if [ -x usr/bin/update-desktop-database ]; then
|
|
||||||
usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -x /usr/bin/update-mime-database ]; then
|
||||||
|
/usr/bin/update-mime-database ./usr/share/mime >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,4 @@
|
||||||
# HOW TO EDIT THIS FILE:
|
abiword: The AbiWord Word Processor
|
||||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
||||||
# up the first '|' above the ':' following the base package name, and the '|'
|
|
||||||
# on the right side marks the last column you can put a character in. You must
|
|
||||||
# make exactly 11 lines for the formatting to be correct. It's also
|
|
||||||
# customary to leave one space after the ':'.
|
|
||||||
|
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|
||||||
abiword: abiword (The AbiWord Word Processor)
|
|
||||||
abiword:
|
abiword:
|
||||||
abiword: The AbiWord word processor is a lightweight and featureful
|
abiword: The AbiWord word processor is a lightweight and featureful
|
||||||
abiword: productivity tool that is suitable for a wide variety of word
|
abiword: productivity tool that is suitable for a wide variety of word
|
||||||
|
|
Loading…
Reference in a new issue