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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 18:05:01 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:05:01
  Author: felixonmars
Revision: 752935

archrelease: copy trunk to community-staging-any

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

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

Copied: python-typer/repos/community-staging-any/PKGBUILD (from rev 752933, python-typer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 18:05:01 UTC (rev 752935)
@@ -0,0 +1,31 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Tony Benoy <me at tonybenoy.com>
+
+_pkgname=typer
+pkgname=python-typer
+pkgver=0.3.2
+pkgrel=2
+pkgdesc="Build great CLIs. Easy to code. Based on Python type hints"
+arch=('any')
+url="https://typer.tiangolo.com/"
+license=('MIT')
+depends=('python-click')
+makedepends=('python-setuptools' 'python-dephell')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tiangolo/typer/archive/${pkgver}.tar.gz")
+sha512sums=('fe58cc344a880acec1cd24f15f668c3b730665bc86d6c0faf9265d7ce145fb91232531e4fc1cb8141356d65554917673e51d57d718958234a173788e3ea0b567')
+
+prepare() {
+  cd "typer-$pkgver"
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+  cd "typer-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "typer-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list