summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fa5a621eed0f911c3f8219b9fbc27af88ae8289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgname=python2-pytest-arraydiff
pkgver=0.3
pkgrel=1
pkgdesc="Pytest plugin to help with comparing array output from tests"
arch=('i686' 'x86_64')
url="https://github.com/astrofrog/pytest-arraydiff"
license=('BSD')
depends=('python2>=2.7' 'python2-pytest' 'python2-numpy')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/p/pytest-arraydiff/pytest-arraydiff-${pkgver}.tar.gz")
md5sums=('5d9af26545c15eaceee403f6cab6261d')

package() {
    cd ${srcdir}/pytest-arraydiff-${pkgver}

    install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
    install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
    python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
}