summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfm2019-02-23 00:57:55 +0100
committerpfm2019-02-23 00:57:55 +0100
commitb0415f3fdac974d2a63be3c81552897665c1250a (patch)
treeb20ef06d7201a9dd87b276c2dc73bd902215fd7d
downloadaur-b0415f3fdac974d2a63be3c81552897665c1250a.tar.gz
Initial package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD38
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5b195a3ea09
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-pem
+ pkgdesc = Parsing and splitting of PEM files
+ pkgver = 18.2.0
+ pkgrel = 1
+ url = https://pem.readthedocs.io
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://github.com/hynek/pem/archive/18.2.0.tar.gz
+ md5sums = 770ec6edc7c88d29bb30ae01b299016a
+
+pkgname = python-pem
+ depends = python
+
+pkgname = python2-pem
+ depends = python2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..91218f2beaf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: pfm <vorticity at mail dot ru>
+pkgname=("python-pem" "python2-pem")
+_pkgname=pem
+pkgver=18.2.0
+pkgrel=1
+pkgdesc="Parsing and splitting of PEM files"
+arch=(any)
+url="https://pem.readthedocs.io"
+license=('MIT')
+makedepends=("python-setuptools" "python2-setuptools")
+source=("https://github.com/hynek/$_pkgname/archive/$pkgver.tar.gz")
+md5sums=('770ec6edc7c88d29bb30ae01b299016a')
+
+prepare() {
+ cp -a $_pkgname-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/$_pkgname-$pkgver-py2"
+ python2 setup.py build
+}
+
+package_python-pem() {
+ depends=("python")
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+package_python2-pem() {
+ depends=("python2")
+ cd "$srcdir/$_pkgname-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}