summaryrefslogtreecommitdiff
path: root/python-certipy/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-24 10:23:45 +0100
committerErich Eckner <git@eckner.net>2020-02-24 10:23:45 +0100
commit68e1a9156459e562c7bb8a424a75416c5e23d9ca (patch)
treeee83bca1efb04bcb9edbc2d62e0f27ec62cc1c67 /python-certipy/PKGBUILD
parente8007ac9bc1823420d85bb008215b60710311a0a (diff)
downloadarchlinuxewe-68e1a9156459e562c7bb8a424a75416c5e23d9ca.tar.xz
python-certipy: 0.1.3-2 -> 0.1.3-3
Diffstat (limited to 'python-certipy/PKGBUILD')
-rw-r--r--python-certipy/PKGBUILD64
1 files changed, 12 insertions, 52 deletions
diff --git a/python-certipy/PKGBUILD b/python-certipy/PKGBUILD
index c633b03f2..70e84af3c 100644
--- a/python-certipy/PKGBUILD
+++ b/python-certipy/PKGBUILD
@@ -1,75 +1,35 @@
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Tommy Li <ttoo74@gmail.com>
-pkgbase=python-certipy
-pkgname=(python-certipy python2-certipy)
-_pkgname="${pkgbase#*-}"
+pkgname=python-certipy
+_pkgname="${pkgname#*-}"
pkgver=0.1.3
-pkgrel=2
+pkgrel=3
pkgdesc="A simple python tool for creating certificate authorities and certificates on the fly"
arch=(any)
url="https://github.com/LLNL/certipy"
license=('BSD')
-_deppy2=(
- 'python2>=2.7'
- 'python2<2.8'
-)
-_deppy=(
+depends=(
'python>=3.8'
'python<3.9'
-)
-_depends=(
'python-pyopenssl'
)
-_makedepends=(
- 'python-pypandoc'
-)
makedepends=(
- "${_deppy[@]}"
- "${_deppy2[@]}"
- "${_depends[@]}"
- "${_depends[@]/python/python2}"
- "${_makedepends[@]}"
- "${_makedepends[@]/ython/ython2}"
+ 'python-pypandoc'
)
source=("https://pypi.python.org/packages/3a/b3/f9228354c1eac06cd3577a981571b9188392d73d583fcaa7a8f3fb374a56/${_pkgname}-$pkgver.tar.gz")
sha512sums=('6168146b60900883e4901920b354e17e341a87cf7dbdf674f0fbcbbb12067aa324d1dc7bf0817b5539873f883ac130f6b199fbab61222d2e06bde70e02019e95')
prepare() {
- # fix permission error
- chmod -R u+rwX,go+rX,go-w "${_pkgname}-$pkgver"
- cp -a "${_pkgname}-$pkgver"{,-py2}
+ # fix permission error
+ chmod -R u+rwX,go+rX,go-w "${_pkgname}-$pkgver"
}
build() {
- echo "Building python..."
- (
- cd "${_pkgname}-$pkgver"
- python setup.py build
- )
- echo "Building python2..."
- (
- cd "${_pkgname}-$pkgver-py2"
- python2 setup.py build
- )
-}
-
-package_python-certipy() {
- depends=(
- "${_deppy[@]}"
- "${_depends[@]}"
- )
- cd "${_pkgname}-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ cd "${_pkgname}-$pkgver"
+ python setup.py build
}
-package_python2-certipy() {
- depends=(
- "${_deppy2[@]}"
- "${_depends[@]/python/python2}"
- )
- cd "${_pkgname}-$pkgver-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
- find "$pkgdir/" -type f -exec sed -i '1 s,/python$,\02,' {} +
- mv "$pkgdir/usr/bin/certipy" "$pkgdir/usr/bin/certipy2"
+package() {
+ cd "${_pkgname}-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
-