summaryrefslogtreecommitdiff
path: root/pcr/gtkpacman/PKGBUILD
blob: bdf1657cd663e1b0995e7d61a5e0e807e451c0c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor (Arch): Tetsumaki <http://goo.gl/YMBdA>
# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de>
# Contributor (Arch): Stefano Esposito <ragnarok@email.it>
# Maintainer : Parabola GNU / Linux-libre <aurelien@cwb.io>

pkgname=gtkpacman
pkgver=2.3.1
pkgrel=4
pkgdesc="GTK package manager for archlinux based on pacman"
arch=('any')
url="http://gtkpacman.berlios.de/"
license=('GPL')
depends=('pygtk' 'vte')
source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('0ee571a5b1efcf5d8594a6eb04456a598c6354301ee6300c6508999c1eb87b88')

build () {
  cd "${srcdir}/${pkgname}-${pkgver}"

  # python2 fix
  for _file in $(find . -name '*.py' -print); do
    sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' "${_file}"
    sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' "${_file}"
  done
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python2 setup.py install --root="${pkgdir}"
}