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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 16:58:03 UTC 2020


    Date: Thursday, November 12, 2020 @ 16:58:03
  Author: felixonmars
Revision: 752130

archrelease: copy trunk to community-staging-any

Added:
  proselint/repos/community-staging-any/
  proselint/repos/community-staging-any/PKGBUILD
    (from rev 752129, proselint/trunk/PKGBUILD)

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

Copied: proselint/repos/community-staging-any/PKGBUILD (from rev 752129, proselint/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 16:58:03 UTC (rev 752130)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Shane Stone <shanewstone at gmail>
+
+pkgname=proselint
+pkgver=0.10.2
+pkgrel=6
+pkgdesc='Linter for prose'
+arch=('any')
+url=https://github.com/amperser/proselint
+license=('BSD')
+depends=('python-click' 'python-future' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-nose' 'python-pytest')
+conflicts=('python-proselint')
+replaces=('python-proselint')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
+sha512sums=('76200d75a4adfaf4adcb07e2109707ca3cec322170a070d50b80267125d854cb46fb097f9fe7ce3a584aed8afc35b47749842a36b0d3e19286e1709bbf3d94b5')
+
+build() {
+  cd $pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $pkgname-$pkgver
+  mkdir -p temp
+  local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
+  python setup.py install --skip-build --root=temp
+  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" pytest
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list