diff options
author | David McInnis | 2017-07-27 20:47:21 -0700 |
---|---|---|
committer | David McInnis | 2017-07-27 20:47:21 -0700 |
commit | a5fbd24d9c9e7377f32f9d1d96f6e6254e824bb2 (patch) | |
tree | b0999c26af1fd71d360d54254d3ad43b05e5bd77 | |
download | aur-a5fbd24d9c9e7377f32f9d1d96f6e6254e824bb2.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d5b699572fab --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-pyamg + pkgdesc = PyAMG: Algebraic Multigrid Solvers in Python + pkgver = 3.3.0 + pkgrel = 1 + url = https://github.com/pyamg/pyamg + arch = i686 + arch = x86_64 + license = MIT + makedepends = python-setuptools + depends = python + source = https://files.pythonhosted.org/packages/source/p/pyamg/pyamg-3.3.0.tar.gz + sha256sums = af80053c23c6618da3786f88d1f89fb98714e5ce7f47a1de2cecfdc1f16d18d2 + +pkgname = python-pyamg + depends = python + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..665d7a14c379 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +#Maintainer: David McInnis <dave@dave3.xyz> + +pkgname=('python-pyamg') +_module='pyamg' +pkgver='3.3.0' +pkgrel=1 +pkgdesc="PyAMG: Algebraic Multigrid Solvers in Python" +url="https://github.com/pyamg/pyamg" +depends=('python') +makedepends=('python-setuptools') +license=('MIT') +arch=('i686' 'x86_64') +source=("https://files.pythonhosted.org/packages/source/p/pyamg/pyamg-${pkgver}.tar.gz") +sha256sums=('af80053c23c6618da3786f88d1f89fb98714e5ce7f47a1de2cecfdc1f16d18d2') + +build() { + cd "${srcdir}/${_module}-${pkgver}" + python setup.py build +} + +check() { + cd "${srcdir}/${_module}-${pkgver}" + python setup.py test +} + + +package() { + depends+=() + cd "${srcdir}/${_module}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/license.md" +} |