summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Greene2015-10-06 19:55:06 -0700
committerMichael Greene2015-10-06 19:55:06 -0700
commit6b72063431fb2d1d875a7e15bf02f5d5252cc934 (patch)
tree5dea9d76419a9763d3f36e407b49091d6663b3a5
downloadaur-6b72063431fb2d1d875a7e15bf02f5d5252cc934.tar.gz
moved PKGBUILD over from aur-mirror.git
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD49
2 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e6e0eeb4ee3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = python-pgpy
+ pkgdesc = Pretty Good Privacy for Python - a pure Python OpenPGP implementation.
+ pkgver = 0.3.0
+ pkgrel = 3
+ url = https://github.com/Commod0re/PGPy
+ arch = any
+ license = BSD
+ makedepends = python-setuptools
+ makedepends = python-cryptography
+ makedepends = python-singledispatch
+ makedepends = python-six
+ makedepends = python2-setuptools
+ makedepends = python2-cryptography
+ makedepends = python2-enum34
+ makedepends = python2-singledispatch
+ makedepends = python2-six
+ source = https://pypi.python.org/packages/source/P/PGPy/PGPy-0.3.0.tar.gz
+ sha256sums = 8ff7df1765b1977505c8dd1a77c4755fe849f792653307fc77f5171d30cd55cd
+ sha384sums = 56e66e067cb643423fe2bffa2c7a3d825e34b2b2b76ca43f0549792d7bcca1b9bcf3b9d797e0435d0576a3ebe4653640
+ sha512sums = d5f8b67c22e75c739200022ddbe0ecbbfe1784ca19fa8e8db09f6d72a96c5c1fbbb0e4b101a7cb2694d25d304126ab12848cd752507526ff313b78ab28b95178
+
+pkgname = python-pgpy
+ depends = python-cryptography>=0.5.2
+ depends = python-singledispatch
+ depends = python-six>=1.7.2
+
+pkgname = python2-pgpy
+ depends = python2-cryptography>=0.5.2
+ depends = python2-six>=1.7.2
+ depends = python2-enum34
+ depends = python-singledispatch
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..60668ea7e09
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Michael Greene <mgreene@securityinnovation.com>
+# Contributor: Michael Greene <mgreene@securityinnovation.com>
+
+pkgbase=python-pgpy
+pkgname=('python-pgpy' 'python2-pgpy')
+pkgver=0.3.0
+pkgrel=3
+pkgdesc="Pretty Good Privacy for Python - a pure Python OpenPGP implementation."
+arch=('any')
+license=('BSD')
+url="https://github.com/Commod0re/PGPy"
+makedepends=('python-setuptools' 'python-cryptography' 'python-singledispatch' 'python-six'
+ 'python2-setuptools' 'python2-cryptography' 'python2-enum34' 'python2-singledispatch' 'python2-six')
+source=("https://pypi.python.org/packages/source/P/PGPy/PGPy-${pkgver}.tar.gz")
+##TODO: sum this shit
+sha256sums=('8ff7df1765b1977505c8dd1a77c4755fe849f792653307fc77f5171d30cd55cd')
+sha384sums=('56e66e067cb643423fe2bffa2c7a3d825e34b2b2b76ca43f0549792d7bcca1b9bcf3b9d797e0435d0576a3ebe4653640')
+sha512sums=('d5f8b67c22e75c739200022ddbe0ecbbfe1784ca19fa8e8db09f6d72a96c5c1fbbb0e4b101a7cb2694d25d304126ab12848cd752507526ff313b78ab28b95178')
+
+prepare() {
+ cp -a PGPy-${pkgver}{,-python2}
+}
+
+build() {
+ # Build Python 3 module
+ cd ${srcdir}/PGPy-${pkgver}
+ python3 setup.py build
+
+ # Build python2 module
+ cd ${srcdir}/PGPy-${pkgver}-python2
+ python2 setup.py build
+}
+
+package_python-pgpy() {
+ depends=('python-cryptography>=0.5.2' 'python-singledispatch' 'python-six>=1.7.2')
+
+ cd PGPy-${pkgver}
+ python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/python-pgpy/LICENSE
+}
+
+package_python2-pgpy() {
+ depends=('python2-cryptography>=0.5.2' 'python2-six>=1.7.2' 'python2-enum34' 'python-singledispatch')
+
+ cd PGPy-${pkgver}-python2
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/python2-pgpy/LICENSE
+}