updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wikipediadumpreader / PKGBUILD
blobd31c6ed700cd6a27574fded5c02c63ac41bcc52f
1 # Contributor: Orivej Desh <smpuj@bk.ru>
2 pkgname=wikipediadumpreader
3 _pkgname=wikipediaDumpReader
4 pkgver=0.2.10
5 pkgrel=1
6 pkgdesc="An application to easily read Wikipedia's downloaded dump files."
7 arch=("i686" "x86_64")
8 url="http://www.kde-apps.org/content/show.php/Wikipedia+Dump+Reader?content=65244"
9 license=("GPL")
10 depends=("pyqt" "texvc")
11 makedepends=()
12 source=("http://launchpad.net/wikipediadumpreader/trunk/$pkgver/+download/$_pkgname-$pkgver.tar.gz"
13         "Makefile" "wikipediadumpreader" "python26.patch")
14 md5sums=('2519f7078b47e853246ba1c8fd89f53d' '56ebc04898079247efc4bad14c92f25a'\
15          '578b5d246d6a23078fb9272bdda26eb5' 'b99bdd61a6bf823d5934634a612b30c8')
17 build() {
18   cd $srcdir/$_pkgname-$pkgver
19   patch -Np2 -i ../python26.patch || return 1   
20   make -C src -f $srcdir/Makefile || return 1
21   make -C zran_wdr_src || return 1
22   DESTDIR="$pkgdir/usr/share/wikipediadumpreader"
23   install -d "$DESTDIR/mod"
24   install -m644 QTextBrowser2.py convert_idx_s.py form3.ui loader.ui mathexp.py mparser.py "$DESTDIR"
25   install -m755 dumpReader.py "$DESTDIR"
26   install -m755 src/bz2.so "$DESTDIR/mod"
27   install -m755 zran_wdr_src/zran "$DESTDIR/zran_wdr"
28   touch "$DESTDIR/mod/__init__.py"
29   install -Dm755 "$srcdir/wikipediadumpreader" "$pkgdir/usr/bin/wikipediadumpreader"
31 # vim: ts=2