[arch-commits] Commit in python-pyopencl/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Tue May 1 09:51:59 UTC 2018


    Date: Tuesday, May 1, 2018 @ 09:51:59
  Author: arojas
Revision: 318574

Update to 2018.1.1

Modified:
  python-pyopencl/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-01 09:23:43 UTC (rev 318573)
+++ PKGBUILD	2018-05-01 09:51:59 UTC (rev 318574)
@@ -1,10 +1,12 @@
 # $Id$
-# Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
+# Maintianer:
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
 
+_pypiname=pyopencl
 pkgbase=python-pyopencl
 pkgname=('python2-pyopencl' 'python-pyopencl' 'pyopencl-headers')
-pkgver=2017.2
-pkgrel=2
+pkgver=2018.1.1
+pkgrel=1
 pkgdesc="A complete, object-oriented language binding of OpenCL to Python"
 arch=('x86_64')
 url="http://mathema.tician.de/software/pyopencl"
@@ -12,17 +14,15 @@
 epoch=1
 checkdepends=('python2-six' 'python-six' 'python-appdirs' 'python2-appdirs')
 makedepends=('boost-libs' 'ctags' 'python2-setuptools' 'python-setuptools' 'opencl-icd-loader' 'opencl-headers' 'mesa' 'boost' 'python2-mako' 'python-mako' 'python-numpy' 'python2-numpy')
-source=('https://pypi.python.org/packages/51/cd/6142228eb3b02df9e23e5468ce6c53d1c57275bdc05bccab11e1a1e1bfec/pyopencl-2017.2.tar.gz'
+source=("https://pypi.io/packages/source/p/$_pypiname/$_pypiname-${pkgver}.tar.gz"
         'LICENSE.txt')
-sha1sums=('27e9f9bf7fa236c38ad3fbb8da3ead06e71c1311'
+sha1sums=('40d036172fd4367a0243356a617c5f91bee1f3cc'
           '2e6966b3d9b15603ce2c3ff79eeadd63c5d066b7')
 
 build() {
-   cd "$srcdir"
-
    cp -a pyopencl-$pkgver{,-python2}
 
-   cd "${srcdir}/pyopencl-${pkgver}"
+   cd pyopencl-${pkgver}
    python3 ./configure.py --cl-enable-gl --python-exe=python3 --cl-pretend-version=1.2 # --boost-python-libname=boost_python3
    make
 
@@ -32,7 +32,7 @@
 }
 
 check(){
-   cd "${srcdir}/pyopencl-${pkgver}"
+   cd pyopencl-${pkgver}
 #   python3 setup.py test
 
    cd "$srcdir/pyopencl-$pkgver-python2"
@@ -42,7 +42,7 @@
 package_python-pyopencl() {
    depends=('opencl-icd-loader' 'opencl-headers' 'mesa' 'boost-libs' 'python' 'python-numpy' 'python-mako' 'python-pytools' 'pyopencl-headers' 'python-setuptools' 'python-cffi')
 
-   cd "${srcdir}/pyopencl-${pkgver}"
+   cd pyopencl-${pkgver}
    python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
 
    rm -fr "${pkgdir}"/usr/include
@@ -53,7 +53,7 @@
 package_python2-pyopencl() {
    depends=('opencl-icd-loader' 'opencl-headers' 'mesa' 'boost-libs' 'python2' 'python2-numpy' 'python2-mako' 'python2-pytools' 'pyopencl-headers' 'python2-setuptools' 'python2-cffi')
 
-   cd "${srcdir}/pyopencl-${pkgver}-python2"
+   cd pyopencl-${pkgver}-python2
    python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
 
     rm -fr "${pkgdir}"/usr/include/
@@ -62,7 +62,7 @@
 }
 
 package_pyopencl-headers() {
-   cd "${srcdir}/pyopencl-${pkgver}/"
+   cd pyopencl-${pkgver}
    install -dm755 "${pkgdir}"/usr/include/pyopencl
 
   for file in pyopencl-airy.cl  pyopencl-bessel-j.cl  pyopencl-bessel-y.cl  pyopencl-complex.h  pyopencl-eval-tbl.cl  pyopencl-ranluxcl.cl; do



More information about the arch-commits mailing list