[arch-commits] Commit in python-anytree/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sat Mar 24 15:33:10 UTC 2018


    Date: Saturday, March 24, 2018 @ 15:33:09
  Author: heftig
Revision: 320137

2.4.3-1

Added:
  python-anytree/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-03-24 15:33:09 UTC (rev 320137)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgbase=python-anytree
+pkgname=(python-anytree python2-anytree)
+pkgver=2.4.3
+pkgrel=1
+pkgdesc="Powerful and Lightweight Python Tree Data Structure"
+url="https://anytree.readthedocs.io/"
+arch=(any)
+license=(Apache)
+makedepends=(python{,2}-{six,setuptools} git)
+_commit=bf6c5134a5257a05b2ed38b91b9f7846add08065  # tags/2.4.3
+source=("$pkgbase::git+https://github.com/c0fec0de/anytree#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cp -a $pkgbase python2
+  cp -a $pkgbase python3
+}
+
+build() {
+  cd python3
+  python3 setup.py build
+
+  cd ../python2
+  python2 setup.py build
+}
+
+package_python-anytree() {
+  depends=(python-six)
+
+  cd python3
+  python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+package_python2-anytree() {
+  depends=(python2-six)
+
+  cd python2
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}


Property changes on: python-anytree/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list