summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10e28d54fd2faa525e93d98510efeac865aa1c37 (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
# Maintainer of this PKBGUILD file: Martino Pilia <martino.pilia@gmail.com>
_name=pyevtk
pkgname=python-${_name}
pkgver=1.1.0
pkgrel=2
pkgdesc='Export data as binary VTK files'
arch=('any')
url='https://bitbucket.org/pauloh/pyevtk'
license=('BSD')
depends=('python-numpy')
makedepends=('python-setuptools')
optdepends=()
source=(
	"https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
	'https://bitbucket.org/pauloh/pyevtk/raw/e253ef56687d86be5daf1d9e6ad9fcf9cffbb327/src/LICENSE')
md5sums=('2ae1a98ddbfc51a48996cb680caa2957'
         '25974a4eee315dd7dd57ce00237cd2c8')

package() {
	cd "$srcdir/$_name-$pkgver"

	install -D -m644 "${srcdir}/LICENSE" \
		             "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

	mv README.txt README.md
	python setup.py install --optimize=1 --root=$pkgdir
}