summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 006634c2be679c5983b55fe7a5cca96ae7842884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pkgname=python-symfit
pkgver=0.5.6
pkgrel=1
pkgdesc='Symbolic fitting for python - fitting as it should be'
arch=('any')
url='https://github.com/tBuLi/symfit'
depends=('python' 'python-numpy' 'python-sympy' 'python-toposort')
makedepends=('python-setuptools' 'python-pbr')
license=('MIT')
source=("$pkgname-$pkgver.tar.gz::https://github.com/tBuLi/symfit/archive/$pkgver.tar.gz")
md5sums=('11612179ab1c6f5c9a8dd8058518d689')

package() {
    cd "$srcdir/symfit-$pkgver"
    # prefix version envvar to prevent pbr from getting confused over version numbers in some setups
    # background can be found here: https://docs.openstack.org/pbr/latest/user/packagers.html#versioning
    PBR_VERSION=$pkgver python setup.py install --root="$pkgdir/" --optimize=1

    install -D "$srcdir/symfit-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}