#Maintainer: Dimitris Tzemos pkgname=abiword pkgver=3.0.1 pkgrel=2dj #source=("http://www.abisource.com/downloads/abiword/$pkgver/source/abiword-$pkgver.tar.gz" http://abisource.com/downloads/abiword/$pkgver/source/abiword-docs-$pkgver.tar.gz) source=(http://abisource.com/downloads/$pkgname/$pkgver/source/$pkgname-$pkgver.tar.gz abiword-3.0.0-librevenge.patch abiword-3.0.0-link-grammar-5.patch abiword-3.0.0-link-grammar-5-second.patch link-grammar-panic.patch aiksaurus-plugin.m4 gnutls-3.4.0.patch) docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "*.txt") url=http://www.abisource.com slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "abiword (word processing for everyone)" "AbiWord is a lean and fast full-featured word processor. It can import" "many formats including Word97/2000 and RTF, Palm, Psion, DocBook and" "XHTML documents, and can export to RTF, Palm, Psion, XHTML, Text," "and LaTeX formats. Linux Journal calls it \"an elegant, open source" "word processor that delivers the Word functionality most people use.\"" ) build() { cd $startdir/src/$pkgname-$pkgver # fix build with librevenge based import filters patch -Np0 -i ../abiword-3.0.0-librevenge.patch # Fix build with recent versions of link-grammar patch -Np1 -i ../abiword-3.0.0-link-grammar-5.patch patch -Np1 -i ../abiword-3.0.0-link-grammar-5-second.patch patch -Np0 -i ../link-grammar-panic.patch # Fix build with new gnutls 3.4.x patch -Np0 -i ../gnutls-3.4.0.patch # Install missing m4 file install -m644 ../aiksaurus-plugin.m4 plugins/aiksaurus/plugin.m4 # Generate m4 file for configure find plugins -name plugin.m4 | xargs cat > plugin-configure.m4 libtoolize --force autoreconf -fi ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --docdir=/usr/doc/$pkgname-$pkgver \ --disable-static \ --enable-shared \ --enable-clipart \ --enable-templates \ --enable-plugins \ --enable-introspection \ --build=$arch-slackware-linux make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps mv $startdir/pkg/usr/share/icons/abiword_48.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/abiword.png sed -i "s/Icon=.*/Icon=abiword/" $startdir/pkg/usr/share/applications/abiword.desktop # Now install the separate abiword-docs cd abiword-docs-$pkgver PATH="$PKG/usr/bin:$PATH" \ PKG_CONFIG_PATH="$PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig:$PKG_CONFIG_PATH" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$pkgname-$pkgver \ --build=$arch-slackware-linux LD_LIBRARY_PATH="$PKG/usr/lib${LIBDIRSUFFIX}:$LD_LIBRARY_PATH" \ PATH="$PKG/usr/bin:$PATH" \ make || return 1 make install DESTDIR=$PKG cd .. }