summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a69571b19c4f8557e3945cd68f25f2b0d717c50e (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
# Maintainer: Clint Valentine <valentine.clint@gmail.com>

_name=adjustText
pkgname=python-adjusttext
pkgver=0.7.3
pkgrel=1
pkgdesc='Iteratively adjust text position in matplotlib plots to minimize overlaps'
arch=(any)
url="https://github.com/Phlya/$_name"
license=(MIT)
depends=(python python-matplotlib python-numpy)
makedepends=(python-setuptools)
options=(!emptydirs)
source=(
	"$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
	"https://raw.githubusercontent.com/Phlya/$_name/$pkgver/LICENSE"
)
sha256sums=('b90e275a95b4d980cbbac7967914b8d66477c09bc346a0b3c9e2125bba664b06'
            '443687f058d5f541952ab9bcd6f836d9843ac13b93b8a6b1097eb0832d2314fa')

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

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