[arch-commits] Commit in python-zipp/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Jan 22 20:20:31 UTC 2020
Date: Wednesday, January 22, 2020 @ 20:20:31
Author: felixonmars
Revision: 554527
archrelease: copy trunk to community-testing-x86_64
Added:
python-zipp/repos/community-testing-x86_64/
python-zipp/repos/community-testing-x86_64/PKGBUILD
(from rev 554526, python-zipp/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-zipp/repos/community-testing-x86_64/PKGBUILD (from rev 554526, python-zipp/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-01-22 20:20:31 UTC (rev 554527)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-zipp
+pkgname=(python-zipp python2-zipp)
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="Pathlib-compatible object wrapper for zip files"
+url="https://github.com/jaraco/zipp"
+license=('MIT')
+arch=('x86_64')
+makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python-more-itertools'
+ 'python2-more-itertools')
+checkdepends=('python2-pathlib2' 'python2-contextlib2' 'python2-unittest2')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jaraco/zipp/archive/v$pkgver.tar.gz")
+sha512sums=('9bd8b4e14d051491dd0a67f6c61e128b7e699f57c25caabcbd093d7de11c3c621bfb76447cfce642a339a3a220ab4193b22ea44b98c963aba48a0b837bc669c9')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+ cd zipp-$pkgver
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd zipp-$pkgver
+ python setup.py test
+ python2 setup.py test
+}
+
+package_python-zipp() {
+ depends=('python-more-itertools')
+
+ cd zipp-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-zipp() {
+ depends=('python2-more-itertools')
+
+ cd zipp-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list