~roshless/PKGBUILDs

89a2a615c9fba17386f414963031d58b5d4b5b91 — Roshless 7 months ago 1717634
upgpkg: python-mypy-ls 0.4.0-2

fix license and url
3 files changed, 38 insertions(+), 10 deletions(-)

M python-mypy-ls/.SRCINFO
A python-mypy-ls/LICENSE
M python-mypy-ls/PKGBUILD
M python-mypy-ls/.SRCINFO => python-mypy-ls/.SRCINFO +4 -2
@@ 1,14 1,16 @@
pkgbase = python-mypy-ls
	pkgdesc = Mypy plugin for the Python LSP Server.
	pkgver = 0.4.0
	pkgrel = 1
	url = https://github.com/paradoxxxzero/pyls-isort
	pkgrel = 2
	url = https://github.com/Richardk2n/mypy-ls
	arch = any
	license = MIT
	makedepends = python-setuptools
	depends = python-lsp-server
	depends = mypy
	source = https://files.pythonhosted.org/packages/source/m/mypy-ls/mypy-ls-0.4.0.tar.gz
	source = https://raw.githubusercontent.com/Richardk2n/mypy-ls/master/LICENSE
	sha256sums = b1071dd451d44d4fdcbc6112689d5b7c5e5d6804370a2a7b5e2e67cc0fa5affb
	sha256sums = 91617fa80085a3c75ffc9070b831012595be53fd9b11f381b4c1ab9d91584149

pkgname = python-mypy-ls

A python-mypy-ls/LICENSE => python-mypy-ls/LICENSE +22 -0
@@ 0,0 1,22 @@
MIT License

Copyright (c) 2017 Tom van Ommeren
Copyright (c) 2020 Richard Kellnberger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

M python-mypy-ls/PKGBUILD => python-mypy-ls/PKGBUILD +12 -8
@@ 3,23 3,27 @@
pkgname=python-mypy-ls
_name=${pkgname#python-}
pkgver=0.4.0
pkgrel=1
pkgrel=2
pkgdesc='Mypy plugin for the Python LSP Server.'
url='https://github.com/paradoxxxzero/pyls-isort'
url='https://github.com/Richardk2n/mypy-ls'
arch=('any')
license=('MIT')
depends=('python-lsp-server' 'mypy')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
	"https://raw.githubusercontent.com/Richardk2n/mypy-ls/master/LICENSE")

build() {
  cd $_name-$pkgver
  python setup.py build
	cd $_name-$pkgver
	python setup.py build
}

package() {
  cd $_name-$pkgver
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

	cd $_name-$pkgver
	python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

sha256sums=('b1071dd451d44d4fdcbc6112689d5b7c5e5d6804370a2a7b5e2e67cc0fa5affb')
sha256sums=('b1071dd451d44d4fdcbc6112689d5b7c5e5d6804370a2a7b5e2e67cc0fa5affb'
            '91617fa80085a3c75ffc9070b831012595be53fd9b11f381b4c1ab9d91584149')