From 3a215b29e6173953a014a1897b1c0f7d4cdf9902 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 5 Dec 2020 20:28:17 +0100 Subject: build-support/python-six-nocheck new --- build-support/python-six-nocheck/PKGBUILD | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 build-support/python-six-nocheck/PKGBUILD diff --git a/build-support/python-six-nocheck/PKGBUILD b/build-support/python-six-nocheck/PKGBUILD new file mode 100644 index 00000000..82664eb9 --- /dev/null +++ b/build-support/python-six-nocheck/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Erich Eckner +# Contributor: Felix Yan +# Contributor: Jelle van der Waa +# Contributer: Allan McRae + +# heavily borrowed from python-six's PKGBUILD + +pkgbase=python-six-nocheck +pkgname=('python2-six-nocheck' 'python-six-nocheck') +pkgver=1.15.0 +pkgrel=3 +pkgdesc="Python 2 and 3 compatibility utilities" +arch=('any') +url="https://pypi.python.org/pypi/six/" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://pypi.io/packages/source/s/six/six-$pkgver.tar.gz") +sha512sums=('eb840ac17f433f1fc4af56de75cfbfe0b54e6a737bb23c453bf09a4a13d768d153e46064880dc763f4c5cc2785b78ea6d3d3b4a41fed181cb9064837e3f699a9') + +build() { + cp -a six-$pkgver{,-py2} +} + +package_python-six-nocheck() { + depends=('python') + provides=("python-six=$pkgver") + conflicts=('python-six') + + cd six-$pkgver + python setup.py install --root "$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-six-nocheck() { + depends=('python2') + provides=("python-six=$pkgver") + conflicts=('python-six') + + cd six-$pkgver-py2 + python2 setup.py install --root "$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} -- cgit v1.2.3