diff options
author | Gordian Edenhofer | 2018-08-01 18:24:17 +0900 |
---|---|---|
committer | Gordian Edenhofer | 2018-08-01 18:25:50 +0900 |
commit | bdf444b86eec252dfbbbf78fb6df9c8167385bb6 (patch) | |
tree | bcffc5556c64c7f8491d1868ade9a1ee021232f9 | |
download | aur-bdf444b86eec252dfbbbf78fb6df9c8167385bb6.tar.gz |
addpkg: python-scikit-surprise 1.0.6-1
addpkg: python-scikit-surprise-git 1.0.4.r73.g633ab47-1
-rw-r--r-- | .SRCINFO | 44 | ||||
-rw-r--r-- | PKGBUILD | 71 |
2 files changed, 115 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..64f6261139b8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,44 @@ +pkgbase = python-scikit-surprise + pkgdesc = Python scikit for building and analyzing recommender systems + pkgver = 1.0.6 + pkgrel = 1 + url = https://github.com/NicolasHug/Surprise + arch = any + license = BSD-3-Clause + makedepends = git + makedepends = python-setuptools + makedepends = python2-setuptools + makedepends = cython + makedepends = cython2 + makedepends = python-numpy + makedepends = python2-numpy + source = python-scikit-surprise-1.0.6.tar.gz::https://github.com/NicolasHug/Surprise/archive/v1.0.6.tar.gz + sha512sums = 6ae60b522bec70c4b2dc55bda5e8d1bd4566a865a7ef803c03e29ea3eedaa625558e5019136d9b69c364e963638f3968b006c82a51f8422c538b523fa4cc805b + +pkgname = python-scikit-surprise + depends = python-joblib + depends = python-numpy + depends = python-scipy + depends = python-six + optdepends = flake8: code linting to comply with contributing standards + optdepends = python-pandas: dataframe handling + optdepends = python-pytest: test suite + optdepends = python-sphinx: documentation generator + optdepends = python-sphinx_rtd_theme: Read The Docs theme for documentation generator + optdepends = python-sphinxcontrib-spelling: spelling extension for documentation generator + provides = python-scikit-surprise=1.0.6 + conflicts = python-scikit-surprise + +pkgname = python2-scikit-surprise + depends = python2-joblib + depends = python2-numpy + depends = python2-scipy + depends = python2-six + optdepends = python2-flake8: code linting to comply with contributing standards + optdepends = python2-pandas: dataframe handling + optdepends = python2-pytest: test suite + optdepends = python2-sphinx: documentation generator + optdepends = python2-sphinx_rtd_theme: Read The Docs theme for documentation generator + optdepends = python2-sphinxcontrib-spelling: spelling extension for documentation generator + provides = python2-scikit-surprise=1.0.6 + conflicts = python2-scikit-surprise diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..99f5f1460cd1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,71 @@ +# Maintainer: Gordian Edenhofer <gordian.edenhofer@gmail.com> + +pkgbase=python-scikit-surprise +pkgname=("python-scikit-surprise" "python2-scikit-surprise") +_reponame="Surprise" +pkgver=1.0.6 +pkgrel=1 +pkgdesc="Python scikit for building and analyzing recommender systems" +arch=('any') +license=('BSD-3-Clause') +url="https://github.com/NicolasHug/${_reponame}" +depends=('') +makedepends=('git' 'python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'python-numpy' 'python2-numpy') +provides=("") +conflicts=("") +source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/NicolasHug/${_reponame}/archive/v${pkgver}.tar.gz") +sha512sums=('6ae60b522bec70c4b2dc55bda5e8d1bd4566a865a7ef803c03e29ea3eedaa625558e5019136d9b69c364e963638f3968b006c82a51f8422c538b523fa4cc805b') + +prepare() { + cp -a "${srcdir}/${_reponame}-${pkgver}"{,-py2} +} + +build_python-scikit-surprise() { + cd "${srcdir}/${_reponame}-${pkgver}" + python setup.py clean + rm -rf build dist + python setup.py build +} + +build_python2-scikit-surprise() { + cd "${srcdir}/${_reponame}-${pkgver}-py2" + python2 setup.py clean + rm -rf build dist + python2 setup.py build +} + +package_python-scikit-surprise() { + depends=('python-joblib' 'python-numpy' 'python-scipy' 'python-six') + optdepends=("flake8: code linting to comply with contributing standards" + "python-pandas: dataframe handling" + "python-pytest: test suite" + "python-sphinx: documentation generator" + "python-sphinx_rtd_theme: Read The Docs theme for documentation generator" + "python-sphinxcontrib-spelling: spelling extension for documentation generator") + provides=("python-scikit-surprise=${pkgver}") + conflicts=("python-scikit-surprise") + + cd "${srcdir}/${_reponame}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 + ln -s "${pkgdir}/usr/bin/surprise"{,3} + + install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname///}/LICENSE" +} + +package_python2-scikit-surprise() { + depends=('python2-joblib' 'python2-numpy' 'python2-scipy' 'python2-six') + optdepends=("python2-flake8: code linting to comply with contributing standards" + "python2-pandas: dataframe handling" + "python2-pytest: test suite" + "python2-sphinx: documentation generator" + "python2-sphinx_rtd_theme: Read The Docs theme for documentation generator" + "python2-sphinxcontrib-spelling: spelling extension for documentation generator") + provides=("python2-scikit-surprise=${pkgver}") + conflicts=("python2-scikit-surprise") + + cd "${srcdir}/${_reponame}-${pkgver}-py2" + python2 setup.py install --root="${pkgdir}" --optimize=1 + mv "${pkgdir}/usr/bin/surprise"{,2} + + install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname///}/LICENSE" +} |