summaryrefslogtreecommitdiff
path: root/pcr/zeroinstall-injector/PKGBUILD
blob: 1203557755fb430b0c113041ccde1989cdb224c0 (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
31
32
33
34
35
36
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Lone_Wolf <lonewolf@xs4all.nl>
# Maintainer : Parabola GNU / Linux-libre <aurelien@cwb.io>

pkgname=zeroinstall-injector
pkgver=1.8
pkgrel=1
pkgdesc="A decentralised loosly-coupled secure installation system"
arch=('any')
url="http://zero-install.sourceforge.net/"
license=('GPL2' 'LGPL')
depends=('pygtk' 'dbus-python' 'gnupg' 'hicolor-icon-theme' 'desktop-file-utils')
optdepends=('xdg-utils: desktop integration'
            'packagekit: packagekit integration')
install="$pkgname.install"
source=("http://downloads.sourceforge.net/zero-install/$pkgname-$pkgver.tar.bz2")
md5sums=('00b3e8b3cbfbe8ed55f81842a4d2c386')

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

  # man path fix
  sed -i "s|man/|share/&|" setup.py

  python2 setup.py build
}

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

  # python2 fix
  sed -i "s/env python/&2/" `grep -rl "env python" "$pkgdir"`
}
md5sums=('00b3e8b3cbfbe8ed55f81842a4d2c386')