updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / opendict / PKGBUILD
blob7443a686417e60447fe5620b9b78faf623f40927
1 # Contributor: Giedrius Slavinskas <giedrius25@gmail.com>
3 pkgname=opendict
4 pkgver=0.6.3
5 pkgrel=4
6 pkgdesc="Multiplatform computer dictionary software"
7 arch=('any')
8 url="http://opendict.idiles.com/"
9 license=('GPL')
10 depends=('python2>=2.3' 'wxpython' 'pyxml' 'gettext>=0.14')
11 makedepends=()
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 install=
17 source=(http://opendict.idiles.com/files/$pkgname-$pkgver.tar.gz)
18 noextract=()
19 md5sums=('2426a1de1131d0279dcea0cded43b063')
20 icondir=share/icons/hicolor
22 build() {
23   mkdir -p $startdir/pkg/usr/$icondir/24x24/apps
24   mkdir -p $startdir/pkg/usr/$icondir/32x32/apps
25   mkdir -p $startdir/pkg/usr/$icondir/48x48/apps
26   mkdir -p $startdir/pkg/usr/$icondir/96x96/apps
27   mkdir -p $startdir/pkg/usr/$icondir/scalable/apps
28   mkdir -p $startdir/pkg/usr/bin
29   mkdir -p $startdir/pkg/usr/share/applications
30   cd $startdir/src/$pkgname-$pkgver
32   # python2 fix 
33   sed -i 's_/usr/share/doc/packages/python_/usr/lib/python2.7_g' po/Makefile
34   sed -i 's_python _python2 _' po/Makefile
35   sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' opendict.py
37   make DESTDIR=$startdir/pkg/usr install || return 1
38   ln -sf $startdir/pkg/usr/share/opendict/opendict.py $startdir/pkg/usr/bin/opendict