[arch-commits] Commit in python-split/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 16:55:15 UTC 2015
Date: Saturday, September 19, 2015 @ 18:55:15
Author: foutrelis
Revision: 141022
archrelease: copy trunk to community-staging-any
Added:
python-split/repos/community-staging-any/
python-split/repos/community-staging-any/PKGBUILD
(from rev 141021, python-split/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-split/repos/community-staging-any/PKGBUILD (from rev 141021, python-split/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 16:55:15 UTC (rev 141022)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-split
+pkgname=("python-split" "python2-split")
+pkgver=0.3
+pkgrel=2
+pkgdesc="Functions to split or partition sequences"
+arch=('any')
+url="https://bitbucket.org/astanin/python-split"
+license=('MIT')
+makedepends=('python' 'python2')
+source=("https://pypi.python.org/packages/source/s/split/split-$pkgver.tar.gz")
+md5sums=('b7335dd97e4dda7ba6d3098ee6202612')
+
+prepare() {
+ cp -a "split-$pkgver"{,-py2}
+}
+
+package_python-split() {
+ depends=('python')
+
+ cd split-$pkgver
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-split() {
+ depends=('python2')
+
+ cd split-$pkgver-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list