summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d9fda08493594836745ff251d28b9bf04c85f7f (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
30
31
32
# Maintainer: Thomas Lam <thomas@lamcw.com>

pkgname=python-pyls-isort-git
_pkgname=pyls-isort
pkgver=0.2.2.r0.g7ddf412
pkgrel=1
pkgdesc="Isort plugin for python-language-server"
arch=('any')
url="https://github.com/paradoxxxzero/pyls-isort"
license=('MIT')
depends=('python' 'python-language-server' 'python-isort')
makedepends=('git' 'python-setuptools')
provides=("${pkgname/-git}")
conflicts=("${pkgname/-git}")
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${_pkgname}"
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/${_pkgname}"
	python setup.py build
}

package() {
	cd "$srcdir/${_pkgname}"
	python setup.py install --root=$pkgdir --optimize=1
	install -D -m644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
}