[arch-commits] Commit in python-traitlets/repos (community-any community-any/PKGBUILD)
Kyle Keen
kkeen at archlinux.org
Sun Oct 9 23:52:45 UTC 2016
Date: Sunday, October 9, 2016 @ 23:52:45
Author: kkeen
Revision: 191766
archrelease: copy trunk to community-any
Added:
python-traitlets/repos/community-any/
python-traitlets/repos/community-any/PKGBUILD
(from rev 191765, python-traitlets/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: python-traitlets/repos/community-any/PKGBUILD (from rev 191765, python-traitlets/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2016-10-09 23:52:45 UTC (rev 191766)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-traitlets
+pkgname=(python-traitlets python2-traitlets)
+pkgver=4.3.1
+pkgrel=1
+pkgdesc="A configuration system for Python applications."
+arch=('any')
+url="https://traitlets.readthedocs.io/en/stable/"
+license=('BSD')
+depends=('python-decorator')
+makedepends=('python-setuptools' 'python2-setuptools')
+
+source=("https://files.pythonhosted.org/packages/source/t/traitlets/traitlets-$pkgver.tar.gz"
+ "https://pypi.python.org/packages/source/i/ipython_genutils/ipython_genutils-0.1.0.tar.gz")
+md5sums=('dd0b1b6e5d31ce446d55a4b5e5083c98'
+ '9a8afbe0978adbcbfcb3b35b2d015a56')
+
+
+# ipython_genutils does not deserve a package
+# "Pretend this doesn’t exist. Nobody should use it."
+# "Vestigial IPython utilities: DO NOT USE"
+# (still required for now though, but drop at first chance)
+
+prepare() {
+ cd "$srcdir"
+ cp -r traitlets-$pkgver python2-traitlets-$pkgver
+ cp -r ipython_genutils-0.1.0 ipython2_genutils-0.1.0
+}
+
+build() {
+ cd "$srcdir"
+}
+
+package_python-traitlets() {
+ # TEMPORARY!
+ cd "$srcdir/ipython_genutils-0.1.0"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+
+ cd "$srcdir/traitlets-$pkgver"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-traitlets() {
+ depends=('python2-decorator')
+
+ # TEMPORARY!
+ cd "$srcdir/ipython2_genutils-0.1.0"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+
+ cd "$srcdir/python2-traitlets-$pkgver"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
More information about the arch-commits
mailing list