blob: 1b677ccfaff05bcf2b8d3fd85b99b000e7c307bb (
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
41
42
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-berliner
_pyname=${pkgbase#python-}
pkgname=("python-${_pyname}")
pkgver=0.1.0
pkgrel=1
pkgdesc="Tools for stellar tracks & isochrones"
arch=('i686' 'x86_64')
url="https://github.com/hypergravity/berliner"
license=('MIT')
#makedepends=('python-pip')
depends=('python-scipy' 'python-regli' 'python-joblib')
optdepends=('python-astropy: For testing')
#source=("https://files.pythonhosted.org/packages/py3/${_pyname:0:1}/${_pyname}/${_pyname/-/_}-${pkgver}-py3-none-any.whl")
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
"https://raw.githubusercontent.com/hypergravity/berliner/master/LICENSE")
md5sums=('6d5857c853e72c187c5c1800cd6b2396'
'SKIP')
#_pyver=$(python -V | cut -c 8-10)
build() {
cd ${srcdir}/${_pyname}-${pkgver}
python setup.py build
}
#check() {
# cd ${srcdir}/${_pyname}-${pkgver}
#
# python setup.py test
#}
package() {
cd ${srcdir}/${_pyname}-${pkgver}
# install -D -m644 ${_pyname}-${pkgver}.dist-info/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ${srcdir}/LICENSE
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname%-git}" README.md
# PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps *.whl
# python -O -m compileall "${pkgdir}/usr/lib/python${_pyver}/site-packages/${_pyname}"
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
}
|