updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / gtkpacman / PKGBUILD
blobdb0f7bea6dc39bdc75d2217bbf7b2afa5cf758e7
1 # Maintainer: Tetsumaki <http://goo.gl/YMBdA>
2 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
3 # Contributor: Stefano Esposito <ragnarok@email.it>
5 pkgname=gtkpacman
6 pkgver=2.3.1
7 pkgrel=4
8 pkgdesc="GTK package manager for archlinux based on pacman"
9 arch=('any')
10 url="http://gtkpacman.berlios.de/"
11 license=('GPL')
12 depends=('pygtk' 'vte')
13 source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
14 sha256sums=('0ee571a5b1efcf5d8594a6eb04456a598c6354301ee6300c6508999c1eb87b88')
16 build () {
17   cd "${srcdir}/${pkgname}-${pkgver}"
19   # python2 fix
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}"
23   done
26 package() {
27   cd "${srcdir}/${pkgname}-${pkgver}"
28   python2 setup.py install --root="${pkgdir}"