diff options
author | Otakar Jašek | 2019-07-16 11:38:12 +0200 |
---|---|---|
committer | Otakar Jašek | 2019-07-16 11:38:12 +0200 |
commit | d270b9e9ab29d459cfd318489faf9304abf80890 (patch) | |
tree | cf0dfc504543c8a024fc3da2c1fd439599880cda | |
download | aur-d270b9e9ab29d459cfd318489faf9304abf80890.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..03d03ef16b8d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = python-foolbox-git + pkgdesc = Python utilities to download and parse the MNIST dataset + pkgver = v2.0.0b0.r8.g4ffc9fc + pkgrel = 1 + url = https://github.com/bethgelab/foolbox + arch = any + license = MIT + makedepends = python-setuptools + makedepends = git + depends = python-numpy + depends = python-scipy + depends = python-gitpython + depends = python-requests + provides = python-foolbox + conflicts = python-foolbox + options = !emptydirs + source = git+https://github.com/bethgelab/foolbox.git + sha256sums = SKIP + +pkgname = python-foolbox-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b896a0a2393d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: otaj +# +# Thanks to Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com> for +# his PKGBUILD that served as a base for this one + +pkgname=python-foolbox-git +pkgdesc="Python utilities to download and parse the MNIST dataset" +pkgver=v2.0.0b0.r8.g4ffc9fc +pkgrel=1 +arch=(any) +url='https://github.com/bethgelab/foolbox' +license=(MIT) +provides=('python-foolbox') +conflicts=('python-foolbox') +depends=('python-numpy' 'python-scipy' 'python-gitpython' 'python-requests') +makedepends=( + 'python-setuptools' 'git' +) +options=(!emptydirs) +source=("git+https://github.com/bethgelab/foolbox.git") +sha256sums=('SKIP') + +pkgver() { + cd foolbox + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + + +package() { + cd "${srcdir}/foolbox" + python setup.py install --root="${pkgdir}/" --optimize=1 + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + |