diff options
author | juacrumar | 2020-09-15 16:18:32 +0200 |
---|---|---|
committer | juacrumar | 2020-09-15 16:18:32 +0200 |
commit | 0d3082e18099688ef957d70039ce6d655d8e15ed (patch) | |
tree | 107ca05f541cea58f741d5604a28319243489090 | |
download | aur-0d3082e18099688ef957d70039ce6d655d8e15ed.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..47377649b665 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = python-pdfflow + pkgdesc = Parton distribution function interpolation library written in Python and based on the TensorFlow framework + pkgver = 1.0 + pkgrel = 1 + url = https://pdfflow.readthedocs.io/ + arch = any + license = GPL3 + makedepends = python-setuptools + depends = python>=3.7 + depends = python-numpy + depends = python-pyaml + depends = python-tensorflow + depends = python-tensorflow-probability + optdepends = python-tensorflow-cuda: GPU support + optdepends = lhapdf: provides PDF files in the LHAPDF format + optdepends = python-vegasflow: MonteCarlo library to run examples + provides = pdfflow + source = https://github.com/N3PDF/pdfflow/archive/v1.0.tar.gz + md5sums = 5991db9a9bc728963de5f48e81fdc3cf + +pkgname = python-pdfflow + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b1f9ab9119e3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Juacrumar <juacrumar at lairen dot eu> + +pkgname=python-pdfflow +_name=pdfflow +pkgver=1.0 +pkgrel=1 +pkgdesc='Parton distribution function interpolation library written in Python and based on the TensorFlow framework' +arch=('any') +url="https://pdfflow.readthedocs.io/" +license=('GPL3') +makedepends=("python-setuptools") +depends=("python>=3.7" + "python-numpy" + "python-pyaml" + "python-tensorflow" + "python-tensorflow-probability" + ) + +optdepends=("python-tensorflow-cuda: GPU support" + "lhapdf: provides PDF files in the LHAPDF format" + "python-vegasflow: MonteCarlo library to run examples" + ) +# checkdepends=("python-pytest") +provides=("pdfflow") +changelog= +source=("https://github.com/N3PDF/pdfflow/archive/v${pkgver}.tar.gz") +md5sums=("5991db9a9bc728963de5f48e81fdc3cf") + +prepare() { + cd "$_name-$pkgver" +} + +build() { + cd "$_name-$pkgver" + python setup.py build +} + +package() { + cd "$_name-$pkgver" + python setup.py install --root="$pkgdir" --optimize=2 --skip-build +} |