blob: b5ad401bed64da931ad3892e1b5e04fc8be6aed1 (
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
32
33
34
35
36
37
38
39
40
|
# Maintainer: Alexandr Parkhomenko <it@52tour.ru>
_author=numpy
_pkgname=numpy-financial
pkgname=python-$_pkgname-git
pkgver=1.0.0.r20.ge3c2a4e
pkgrel=1
pkgdesc='Collection of elementary financial functions'
arch=(
'any'
)
url='https://github.com/'
license=('BSD 3-Clause')
depends=('python-numpy>=1.15')
makedepends=('git')
provide=('numpy-financial')
source=("git://github.com/$_author/$_pkgname")
sha256sums=('SKIP')
pkgver () {
cd "$srcdir/$_pkgname"
git describe --tags --long | sed -r 's/^v//;s/-RC/RC/;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_pkgname"
python setup.py build
}
check() {
cd "$srcdir/$_pkgname"
python setup.py test
}
package() {
cd "$srcdir/$_pkgname"
python setup.py install --root="$pkgdir/" --skip-build --optimize=1
install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|