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

Evangelos Foutras foutrelis at archlinux.org
Fri Oct 25 15:14:35 UTC 2019


    Date: Friday, October 25, 2019 @ 15:14:35
  Author: foutrelis
Revision: 518939

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: python-kiwisolver/repos/community-staging-x86_64/PKGBUILD (from rev 518938, python-kiwisolver/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-10-25 15:14:35 UTC (rev 518939)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-kiwisolver
+pkgname=(python-kiwisolver python2-kiwisolver)
+pkgver=1.1.0
+pkgrel=2
+pkgdesc="A fast implementation of the Cassowary constraint solver"
+url="https://github.com/nucleic/kiwi"
+license=('PerlArtistic')
+arch=('x86_64')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/nucleic/kiwi/archive/$pkgver.tar.gz")
+sha512sums=('e26a951fdba2fb221effe7ed785010d5795695b30e19fb67a30dc2ac883ee21b1daec967ad89734309c101513cd17bb5971118591270f402b8d46098178aff25')
+
+prepare() {
+  cp -a kiwi-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/kiwi-$pkgver/
+  python setup.py build
+
+  cd "$srcdir"/kiwi-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/kiwi-$pkgver/
+  python setup.py pytest
+
+  cd "$srcdir"/kiwi-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-kiwisolver() {
+  depends=('python-setuptools')
+
+  cd kiwi-$pkgver/
+  python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-kiwisolver() {
+  depends=('python2-setuptools')
+
+  cd kiwi-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list