summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a210d10e9ae47dee64c717771767c972ab0b342 (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: Dylan Delgado <dylan1496 at live dot com>

pkgname=python-sdf
_pipname=SDF
pkgver=0.3.5
pkgrel=1
pkgdesc="Python library to work with the Scientific Data Format"
url="https://github.com/ScientificDataFormat/SDF-Python"
arch=('x86_64')
license=('custom:BSD 3-clause')
depends=('python-numpy' 'python-matplotlib' 'python-scipy' 'python-h5py')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/7e/0f/35fe015db93179c905795b84cc03fc79b5b40d0daf530e1e075b0f78aea2/${_pipname}-${pkgver}.tar.gz"
"LICENSE")
sha256sums=('7be0abd14f0cb742745b383436f7b26d883396610da045ba485f24cc5bbfd22f'
'SKIP')

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

package() {
  cd ${srcdir}/${_pipname}-${pkgver}
  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build
  cd ..
  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
}