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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 02:08:23 UTC 2019


    Date: Monday, November 4, 2019 @ 02:08:23
  Author: felixonmars
Revision: 522975

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pyblake2/repos/community-staging-x86_64/
  python-pyblake2/repos/community-staging-x86_64/PKGBUILD
    (from rev 522974, python-pyblake2/trunk/PKGBUILD)

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

Copied: python-pyblake2/repos/community-staging-x86_64/PKGBUILD (from rev 522974, python-pyblake2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-11-04 02:08:23 UTC (rev 522975)
@@ -0,0 +1,42 @@
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=('python-pyblake2' 'python2-pyblake2')
+pkgver=1.1.2
+pkgrel=3
+pkgdesc='BLAKE2 hash function for Python'
+arch=('x86_64')
+url='https://pythonhosted.org/pyblake2'
+license=('custom')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://files.pythonhosted.org/packages/a6/ea/559658f48713567276cabe1344a9ef918adcb34a9da417dbf0a2f7477d8e/pyblake2-${pkgver}.tar.gz")
+sha256sums=('5ccc7eb02edb82fafb8adbb90746af71460fbc29aa0f822526fc976dff83e93f')
+
+prepare() {
+  cp -a pyblake2-${pkgver} python2-pyblake2-${pkgver}
+}
+
+build() {
+  cd pyblake2-${pkgver}
+  python setup.py build
+
+  cd ../python2-pyblake2-${pkgver}
+  python2 setup.py build
+}
+
+package_python-pyblake2() {
+  depends=('python')
+
+  cd pyblake2-${pkgver}
+
+  python setup.py install --root="${pkgdir}" --skip-build --optimize=1
+  install -Dm644 -t "${pkgdir}/usr/share/licenses/python-pyblake2" COPYING
+}
+
+package_python2-pyblake2() {
+  depends=('python2')
+
+  cd python2-pyblake2-${pkgver}
+
+  python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
+  install -Dm644 -t "${pkgdir}/usr/share/licenses/python2-pyblake2" COPYING
+}



More information about the arch-commits mailing list