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

Filipe Laíns ffy00 at archlinux.org
Wed Apr 29 00:53:03 UTC 2020


    Date: Wednesday, April 29, 2020 @ 00:53:01
  Author: ffy00
Revision: 622155

upgpkg: monkeytype 20.4.2-1

Added:
  monkeytype/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-29 00:53:01 UTC (rev 622155)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=MonkeyType
+pkgname=monkeytype
+pkgver=20.4.2
+pkgrel=1
+pkgdesc='A system for Python that generates static type annotations by collecting runtime types'
+arch=('any')
+url='https://github.com/instagram/MonkeyType'
+license=('BSD')
+depends=('python-mypy_extensions' 'python-libcst')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-django')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('911f34b8c67f53a7684bdadf83655793516c89960f4bbf18e7454faa87e08df0cfb8189bfc15682ac34648f01cbab53ebbbac5dd8c2dc2ce878d1e1a5cbb0383')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list