[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Tue Feb 2 07:46:55 UTC 2016


    Date: Tuesday, February 2, 2016 @ 08:46:55
  Author: fyan
Revision: 159893

addpkg: python-sortedcontainers 1.4.4-1

Added:
  python-sortedcontainers/
  python-sortedcontainers/repos/
  python-sortedcontainers/trunk/
  python-sortedcontainers/trunk/PKGBUILD

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

Added: python-sortedcontainers/trunk/PKGBUILD
===================================================================
--- python-sortedcontainers/trunk/PKGBUILD	                        (rev 0)
+++ python-sortedcontainers/trunk/PKGBUILD	2016-02-02 07:46:55 UTC (rev 159893)
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 141139 2015-09-20 03:14:59Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-sortedcontainers
+pkgname=('python-sortedcontainers' 'python2-sortedcontainers')
+pkgver=1.4.4
+pkgrel=1
+pkgdesc="Python Sorted Container Types: SortedList, SortedDict, and SortedSet"
+arch=('any')
+license=('Apache')
+url="http://www.grantjenks.com/docs/sortedcontainers/"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/grantjenks/sorted_containers.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a sorted_containers{,-py2}
+}
+
+build() {
+  cd "$srcdir/sorted_containers"
+  python setup.py build
+
+  cd "$srcdir/sorted_containers-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/sorted_containers"
+  nosetests3
+
+  cd "$srcdir/sorted_containers-py2"
+  nosetests2
+}
+
+package_python-sortedcontainers() {
+  depends=('python-yaml')
+
+  cd sorted_containers
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-sortedcontainers() {
+  depends=('python2-yaml')
+
+  cd sorted_containers-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list