summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5aa5a616fe3d2094b222fa1b642192a541172620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Roshless <pkg@roshless.com>

pkgname=python-mypy-ls
_name=${pkgname#python-}
pkgver=0.4.1
pkgrel=1
pkgdesc='Mypy plugin for the Python LSP Server.'
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"
	"https://raw.githubusercontent.com/Richardk2n/mypy-ls/master/LICENSE")

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

package() {
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

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

sha256sums=('e3f1b5d76efc1136440c10dc61fe601f75f753525632898d0ca35fdea1388f76'
            '91617fa80085a3c75ffc9070b831012595be53fd9b11f381b4c1ab9d91584149')