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

Felix Yan fyan at archlinux.org
Tue Feb 2 07:47:15 UTC 2016


    Date: Tuesday, February 2, 2016 @ 08:47:14
  Author: fyan
Revision: 159894

archrelease: copy trunk to community-any

Added:
  python-sortedcontainers/repos/community-any/
  python-sortedcontainers/repos/community-any/PKGBUILD
    (from rev 159893, python-sortedcontainers/trunk/PKGBUILD)

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

Copied: python-sortedcontainers/repos/community-any/PKGBUILD (from rev 159893, python-sortedcontainers/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-02-02 07:47:14 UTC (rev 159894)
@@ -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