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

Bruno Pagani archange at archlinux.org
Mon Feb 17 15:54:57 UTC 2020


    Date: Monday, February 17, 2020 @ 15:54:57
  Author: archange
Revision: 574336

FS#65169: Update URL; drop python2 variant

Modified:
  python-pyct/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++----------------------
 1 file changed, 6 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-17 15:54:54 UTC (rev 574335)
+++ PKGBUILD	2020-02-17 15:54:57 UTC (rev 574336)
@@ -1,42 +1,26 @@
 # Maintainer: Bruno Pagani <archange at archlinux.org>
 
 _pkg=pyct
-pkgbase=python-${_pkg,,}
-pkgname=("python-${_pkg,,}" "python2-${_pkg,,}")
+pkgname=python-${_pkg}
 pkgver=0.4.6
 pkgrel=3
 pkgdesc="Python packaging Common Tasks"
 arch=(any)
-url="https://pyct.pyviz.org/"
+url="https://github.com/pyviz-dev/pyct"
 license=(BSD)
-makedepends=(python-setuptools python-param python2-setuptools python2-param)
-source=("https://files.pythonhosted.org/packages/source/p/${_pkg}/${_pkg}-${pkgver}.tar.gz")
+depends=(python-param)
+makedepends=(python-setuptools python-param)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
 sha256sums=('df7b2d29f874cabdbc22e4f8cba2ceb895c48aa33da4e0fe679e89873e0a4c6e')
 
-prepare() {
-    cp -a ${_pkg}-${pkgver}{,-py2}
-}
-
 build() {
     cd ${_pkg}-${pkgver}
     python setup.py build
-
-    cd ../${_pkg}-${pkgver}-py2
-    python2 setup.py build
 }
 
-package_python-pyct() {
-    depends=(python-param)
+package() {
     cd ${_pkg}-${pkgver}
     python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
 
     install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
 }
-
-package_python2-pyct() {
-    depends=(python2-param)
-    cd ${_pkg}-${pkgver}-py2
-    python2 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
-
-    install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}



More information about the arch-commits mailing list