[arch-commits] Commit in python-zipp/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jan 1 10:23:27 UTC 2019


    Date: Tuesday, January 1, 2019 @ 10:23:25
  Author: felixonmars
Revision: 420133

archrelease: copy trunk to community-x86_64

Added:
  python-zipp/repos/community-x86_64/
  python-zipp/repos/community-x86_64/PKGBUILD
    (from rev 420132, python-zipp/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: python-zipp/repos/community-x86_64/PKGBUILD (from rev 420132, python-zipp/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-01-01 10:23:25 UTC (rev 420133)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-zipp
+pkgname=(python-zipp python2-zipp)
+pkgver=0.3.3
+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')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-flake8'
+              'python2-pytest-flake8')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jaraco/zipp/archive/$pkgver.tar.gz")
+sha512sums=('b22e2a2d576ab3ec71cf0065875ce82c4020a7a490493bb007d51592bc7be957487af50f1e77a6a550eb0ebbfb621617f60e5ced559609687e22be98816843ac')
+
+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 pytest
+  python2 setup.py pytest
+}
+
+package_python-zipp() {
+  depends=('python')
+
+  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')
+
+  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