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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 16:51:30 UTC 2018


    Date: Saturday, June 30, 2018 @ 16:51:30
  Author: felixonmars
Revision: 348578

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 348577, python-kiwisolver/trunk/PKGBUILD)

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

Copied: python-kiwisolver/repos/community-staging-x86_64/PKGBUILD (from rev 348577, python-kiwisolver/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-30 16:51:30 UTC (rev 348578)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-kiwisolver
+pkgname=(python-kiwisolver python2-kiwisolver)
+pkgver=1.0.1
+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=('01002ae1dbf6482ed68c49ad3da80b772db84ec221c4b111c42f1b493f19299e0ddb187e43e64b380eb2ddc292d5848d6e09a5a1dbfaf68950a65423a913ec18')
+
+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