[arch-commits] Commit in python-scikit-learn/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Wed Jan 5 08:55:09 UTC 2022
Date: Wednesday, January 5, 2022 @ 08:55:09
Author: alerque
Revision: 1093213
upgpkg: python-scikit-learn 1.0.2-1
Modified:
python-scikit-learn/trunk/PKGBUILD
----------+
PKGBUILD | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-05 08:43:54 UTC (rev 1093212)
+++ PKGBUILD 2022-01-05 08:55:09 UTC (rev 1093213)
@@ -2,8 +2,8 @@
# Maintainer: Caleb Maclennan <caleb at alerque.com>
pkgname=python-scikit-learn
-pkgver=1.0.1
-pkgrel=3
+pkgver=1.0.2
+pkgrel=1
pkgdesc="A set of python modules for machine learning and data mining"
arch=('x86_64')
url='https://scikit-learn.org'
@@ -12,20 +12,20 @@
optdepends=('python-matplotlib: plotting capabilities')
makedepends=('python-setuptools' 'cython' 'openmp')
options=(!emptydirs)
-source=("scikit-learn-${pkgver}.tar.gz::https://github.com/scikit-learn/scikit-learn/archive/${pkgver}.tar.gz")
-sha256sums=('1b4d6b023baaf20b4d1b70ed67033182089c03995dc7ae0e803645fa9ed024f9')
+_archive="${pkgname#python-}-$pkgver"
+source=("https://github.com/scikit-learn/scikit-learn/archive/${pkgver}/$_archive.tar.gz")
+sha256sums=('34471662f0e5ba8d2c799391338c6f976680cc66b715e00db0c7589f4f371bc4')
build() {
- cd scikit-learn-$pkgver
+ cd "$_archive"
python setup.py build
}
package() {
- cd scikit-learn-$pkgver
+ cd "$_archive"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm066 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
- install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
# See FS#49651
install -d "$pkgdir"/usr/share/doc/$pkgname
cp -r doc/tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
More information about the arch-commits
mailing list