summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f57c88465b613513c12af155b1371be75e54d2f3 (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
# Maintainer: Stephan Springer <buzo+arch@Lini.de>

_pkgname=python-gnupg
pkgname=python-pretty_bad_protocol
pkgver=3.1.1
pkgrel=2
pkgdesc='Another Python 3 wrapper for GnuPG'
arch=('any')
url='https://github.com/isislovecruft/python-gnupg'
license=('GPL3')
makedepends=('python-setuptools')
depends=('python' 'gnupg')
source=("$pkgname-$pkgver.tar.gz::https://github.com/isislovecruft/$_pkgname/archive/$pkgver.tar.gz")
sha256sums=('69b74379f235a370379d0c3f890102f5fdf0b0db580a728702abdfa4be5780ba')

prepare() {
    cd "$_pkgname-$pkgver"
    sed -i "s|^versioneer.parentdir_prefix = 'pretty-bad-protocol-'|versioneer.parentdir_prefix = 'python-gnupg-'|" setup.py
}

build() {
    cd "$_pkgname-$pkgver"
    python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1
  rm "$pkgdir"/usr/bin/versioneer.py
  rmdir "$pkgdir"/usr/bin
}