updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / openoffice.org-voikko-bin / PKGBUILD
blob6a5e2b94abe4b47b2754363f8494657c4fbda2f6
1 # Contributor: Jesse Jaara <jesse.jaara@gmail.com>
2 pkgname=openoffice.org-voikko-bin
3 pkgver=3.1.1
4 ubuild_ver=1
5 pkgrel=1
6 pkgdesc="Ubuntus binary package! Finnish spellchecker, grammar checker and hyphenator extension for OpenOffice.org"
7 arch=('i686' 'x86_64')
8 url="http://voikko.sourceforge.net"
9 license=('GPL3')
10 depends=('libvoikko')
11 provides=('openoffice-voikko')
12 conflicts=('openoffice-voikko')
13 replaces=('openoffice-voikko')
14 install=openoffice.org-voikko.install
16 if [ "$CARCH" = "x86_64" ]; then
17     _arch=amd64
18 else
19     _arch=i386
22 # Check if we have go-openoffice
24 if [ -d /usr/lib/go-openoffice ]; then
25   _ooo_ver=go-openoffice
26 else
27   _ooo_ver=openoffice
30 source=("http://se.archive.ubuntu.com/ubuntu/pool/main/o/openoffice.org-voikko/openoffice.org-voikko_${pkgver}-${ubuild_ver}_${_arch}.deb")
32 if [ "$CARCH" = "x86_64" ]; then
33 md5sums=('5d70ee2eb429d675036b12a1b178e5a5')
34 else
35 md5sums=('7f2f40219871ddb007ba88a6d5ad189c')
38 build() {
39   ar -x openoffice.org-voikko_${pkgver}-${ubuild_ver}_${_arch}.deb data.tar.gz
40   tar xzf data.tar.gz
42   cd ${srcdir}/usr/lib/openoffice/share/extension/install
43   mkdir -p $pkgdir/usr/lib/${_ooo_ver}/share/extension/install
44   cp voikko.oxt $pkgdir/usr/lib/${_ooo_ver}/share/extension/install/
46 # vim:set ts=2 sw=2 et: