[arch-commits] Commit in python-pasta/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:50:30 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:50:29
  Author: foutrelis
Revision: 1059384

archrelease: copy trunk to community-staging-any

Added:
  python-pasta/repos/community-staging-any/
  python-pasta/repos/community-staging-any/PKGBUILD
    (from rev 1059383, python-pasta/trunk/PKGBUILD)

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

Copied: python-pasta/repos/community-staging-any/PKGBUILD (from rev 1059383, python-pasta/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:50:29 UTC (rev 1059384)
@@ -0,0 +1,28 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+
+pkgname=python-pasta
+pkgver=0.2.0
+pkgrel=5
+pkgdesc='Library to refactor python code through AST manipulation'
+url='https://github.com/google/pasta'
+arch=('any')
+license=('Apache')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/google/pasta/archive/v${pkgver}.tar.gz")
+sha512sums=('8d5723df7f6b30e789aa5710b0e594102361f0ae1408a12529b469faf68b41b7c1273e6310f3ea07af353b0509e8ff8404dca715eb821626c289ab24f149f048')
+
+build() {
+  cd "$srcdir/pasta-$pkgver"
+
+  python setup.py build
+}
+
+package() {
+  cd "pasta-$pkgver"
+
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list