[arch-commits] Commit in python-sortedcontainers/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Dec 25 17:26:49 UTC 2016
Date: Sunday, December 25, 2016 @ 17:26:48
Author: foutrelis
Revision: 202093
archrelease: copy trunk to community-staging-any
Added:
python-sortedcontainers/repos/community-staging-any/
python-sortedcontainers/repos/community-staging-any/PKGBUILD
(from rev 202092, python-sortedcontainers/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-sortedcontainers/repos/community-staging-any/PKGBUILD (from rev 202092, python-sortedcontainers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 17:26:48 UTC (rev 202093)
@@ -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.5.7
+pkgrel=2
+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')
+
+ cd sorted_containers
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-sortedcontainers() {
+ depends=('python2')
+
+ cd sorted_containers-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list