[arch-commits] Commit in (4 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed Mar 25 00:55:43 UTC 2020
Date: Wednesday, March 25, 2020 @ 00:55:42
Author: svenstaro
Revision: 603959
Prepare adding python-astunparse for tensorflow
Added:
python-astunparse/
python-astunparse/repos/
python-astunparse/trunk/
python-astunparse/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Added: python-astunparse/trunk/PKGBUILD
===================================================================
--- python-astunparse/trunk/PKGBUILD (rev 0)
+++ python-astunparse/trunk/PKGBUILD 2020-03-25 00:55:42 UTC (rev 603959)
@@ -0,0 +1,28 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Andrew Steinke <rkcf at rkcf.me>
+
+pkgname=python-astunparse
+_pkgname=astunparse
+pkgrel=2
+pkgver=1.6.2
+pkgdesc="An AST unparser for Python"
+depends=('python' 'python-six')
+makedepends=('python-setuptools' 'python-wheel')
+url="https://github.com/simonpercivall/astunparse"
+license=('python')
+arch=('any')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/simonpercivall/astunparse/archive/v$pkgver.tar.gz")
+sha512sums=('ca13543cfcdac7dbfd3ff936c0affbf1')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list