summaryrefslogtreecommitdiff
path: root/libre/python-pgpdump/PKGBUILD
blob: e65f60dfaa60045367b66f24d056a96b822f1276 (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

_pkgname=pgpdump
pkgname=(python-pgpdump python2-pgpdump)
pkgver=1.4
pkgdesc=" a Python library for parsing PGP packets"
url="https://github.com/toofishes/python-pgpdump"
license=('custom:BSD3')

pkgrel=1
arch=(any)
makedepends=(python python2)
provides=(python2-pgpdump)
source=(http://pypi.python.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz)
md5sums=(b437c28ff9d6a6257a0062c0bbe2a9ec)

package_python-pgpdump() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

package_python2-pgpdump() {
  cd "$srcdir/$_pkgname-$pkgver"
  python2 setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}