summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35ffbf43b323231670c9eb299059d7cd1865d615 (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
31
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Antony Lee <anntzer dot lee at gmail dot com>

pkgname=python-supersmoother
pkgver=0.4
pkgrel=2
pkgdesc="Python implementation of Friedman's Supersmoother"
url="https://github.com/jakevdp/supersmoother"
license=('BSD')
arch=('any')
depends=('python-numpy')
makedepends=('python-setuptools')
changelog=CHANGES.md
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('439ddf5e19e134dc65af46a2c1701aea3702026d717776def35dc5fce972cb0b')

prepare() {
	cd "supersmoother-$pkgver"
	sed -i '/supersmoother.tests/d' setup.py
}

build() {
	cd "supersmoother-$pkgver"
	python setup.py build
}

package() {
	cd "supersmoother-$pkgver"
	PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
	install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}