blob: 575e4eddeca66dad945f47316ce1e09afc9530fb (
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
|
# Maintainer: Francisco Salces Carcoba <pacosalces@gmail.com>
pkgname=python-physunits
_name=physunits
pkgver=0.0.7
pkgrel=1
pkgdesc="Physical units as global variables for simple numerical propagation"
license=("MIT")
url="https://pypi.org/project/physunits/"
makedepends=('python-setuptools')
depends=('python-numpy')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('ffd66e9f6a4cddbc83f16f8dda7d7edd35fe059f82f1d30c47d246dbb8c0f60a')
arch=('any')
build() {
cd "$srcdir"/${_name}-$pkgver
python setup.py build
}
package() {
cd "$srcdir"/${_name}-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|