1 # Maintainer: yugrotavele <yugrotavele at archlinux dot us>
2 # Contributor: shamrok <szamrok@gmail.com>
7 pkgdesc="Graphical frontend (PyGTK) for the Linux par2 utility"
8 url="http://pypar2.silent-blade.org/"
9 depends=('pygtk' 'libglade' 'vte' 'pyxml' 'par2cmdline')
10 source=("http://pypar2.silent-blade.org/uploads/Main/$pkgname-$pkgver.tar.gz")
11 md5sums=('d77ea7c0ff88209d994c5723c98d00a5')
13 arch=('i686' 'x86_64')
16 cd $startdir/src/PyPar2-$pkgver
19 sed -i 's_PYTHON ?= python_PYTHON ?= python2_' Makefile
20 for file in $(find . -name '*.py' -print); do
21 sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
22 sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
27 cd $startdir/src/PyPar2-$pkgver
28 make prefix=$startdir/pkg/usr install
29 rm $startdir/pkg/usr/bin/pypar2
30 ln -s /usr/share/pypar2/src/main.py $startdir/pkg/usr/bin/pypar2