summaryrefslogtreecommitdiff
path: root/libre/abiword-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-04-02 15:23:40 -0300
committerAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-04-02 15:23:40 -0300
commit1d7c93971ec01f370c595b89ece78a9adc142f05 (patch)
treef5a652af5e813d741e55baa25d17cc777c6a38f8 /libre/abiword-libre/PKGBUILD
parent8ce4d267861b903bf1d3c67b1a7edaff1d09456f (diff)
libre/abiword-libre
Diffstat (limited to 'libre/abiword-libre/PKGBUILD')
-rw-r--r--libre/abiword-libre/PKGBUILD106
1 files changed, 106 insertions, 0 deletions
diff --git a/libre/abiword-libre/PKGBUILD b/libre/abiword-libre/PKGBUILD
new file mode 100644
index 000000000..26fcce8eb
--- /dev/null
+++ b/libre/abiword-libre/PKGBUILD
@@ -0,0 +1,106 @@
+# $Id: PKGBUILD 146945 2012-01-19 14:58:28Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Maël Lavault <moimael@neuf.fr>
+# Contributor (Parabola): André Silva <andre.paulista@adinet.com.uy>
+
+_pkgbase=abiword
+pkgbase=abiword-libre
+pkgname=('abiword-libre' 'abiword-libre-plugins')
+pkgver=2.8.6
+pkgrel=7
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+url="http://www.abisource.com"
+makedepends=('pkgconfig' 'asio' 'boost' 'fribidi' 'goffice' 'libwmf' 'wv' 'link-grammar' 'gtkmathview'
+ 'aiksaurus' 'libxslt' 'enchant' 'libots' 'libwpg' 'librsvg' 'loudmouth' 'libsoup' 'ttf-liberation')
+options=('!makeflags' '!libtool')
+source=("http://www.abisource.com/downloads/${_pkgbase}/${pkgver}/source/${_pkgbase}-${pkgver}.tar.gz"
+ 'compat_libwpg_0_9.patch'
+ 'abiword-2.8.6-no-undefined.patch'
+ 'abiword-2.8.6-libpng15.patch'
+ 'liberation-fonts.patch')
+md5sums=('f883b0a7f26229a9c66fd6a1a94381aa'
+ '09446a2ebba8288fc611e88f7cf17298'
+ '42e2614b6e0aad457d91f6ce20b6f225'
+ '40e370e7e88c5437140ef18037abfbd3'
+ '880b17db6f249d977d2a7cd012d9ce02')
+conflicts=('abiword')
+replaces=('abiword')
+provides=("abiword=$pkgver")
+
+
+# source PKGBUILD; mksource
+#mksource() {
+ #wget http://www.abisource.com/downloads/abiword/${pkgver}/source/abiword-${pkgver}.tar.gz -O -| \
+ # tar xzf -
+
+# pushd abiword-${pkgver}
+ #find -type f -print0 | xargs -0 sed -i "s:Times New Roman:Liberation Serif:g"
+ #patch -Np1 -i ../liberation-fonts.patch || return 1
+ #popd
+
+ #mv abiword-${pkgver} ${pkgbase}-${pkgver}
+ #tar czf ${pkgbase}-${pkgver}.tar.gz ${pkgbase}-${pkgver}/
+
+ #rm -r ${pkgbase}-${pkgver}/
+
+#}
+
+build() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+
+ patch -Np1 -i "${srcdir}/compat_libwpg_0_9.patch"
+ # fix a gcc 4.6.x build issue, patch from Fedora
+ patch -Np1 -i "${srcdir}/abiword-2.8.6-no-undefined.patch"
+ patch -Np0 -i "${srcdir}/abiword-2.8.6-libpng15.patch"
+ patch -Np1 -i "${srcdir}/liberation-fonts.patch"
+
+ libtoolize --force
+ autoreconf
+
+ ./configure --prefix=/usr \
+ --enable-clipart \
+ --enable-templates \
+ --enable-collab-backend-xmpp \
+ --enable-collab-backend-tcp \
+ --enable-collab-backend-service \
+ --disable-collab-backend-sugar \
+ --enable-plugins --without-gnomevfs \
+ --with-gio \
+ --with-goffice \
+ --disable-static \
+ --with-psiconv-config=/nothere
+ make
+}
+
+package_abiword-libre() {
+ pkgdesc="A fully-featured word processor that doesn't recommend unfree fonts"
+ depends=('fribidi' 'wv' 'goffice' 'librsvg' 'enchant' 'desktop-file-utils')
+ install=$pkgname.install
+ optdepends=('abiword-plugins')
+ conflicts=("abiword-plugins<${pkgver}-${pkgrel}")
+
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ sed -i plugins/Makefile \
+ -e 's/ collab / /' \
+ -e 's/ wpg / /' \
+ -e 's/ wmf / /' \
+ -e 's/ grammar / /' \
+ -e 's/ mathview / /' \
+ -e 's/ aiksaurus / /' \
+ -e 's/ latex / /' \
+ -e 's/ ots / /' \
+ -e 's/ wordperfect / /'
+ make DESTDIR="${pkgdir}" install
+}
+
+package_abiword-libre-plugins() {
+ pkgdesc="Additional plugins for Abiword"
+ depends=("abiword-libre=${pkgver}-${pkgrel}" 'loudmouth' 'libwpg' 'libwmf' 'link-grammar'
+ 'gtkmathview' 'aiksaurus' 'libxslt' 'libsoup' 'libots' 'libgsf')
+
+ cd "${srcdir}/${_pkgbase}-${pkgver}/plugins"
+ for dir in collab wpg wmf grammar mathview aiksaurus latex ots wordperfect; do
+ make -C ${dir} DESTDIR="${pkgdir}" install
+ done
+}