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

Lukas Fleischer lfleischer at archlinux.org
Sun Mar 3 09:47:30 UTC 2019


    Date: Sunday, March 3, 2019 @ 09:47:30
  Author: lfleischer
Revision: 437441

upgpkg: python-magic 5.36-2

Drop Python 2 support.

Modified:
  python-magic/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++--------------
 1 file changed, 5 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-03 09:26:04 UTC (rev 437440)
+++ PKGBUILD	2019-03-03 09:47:30 UTC (rev 437441)
@@ -1,31 +1,22 @@
 # Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
 
-pkgbase=python-magic
-pkgname=(python-magic python2-magic)
+pkgname=python-magic
 pkgver=5.36
-pkgrel=1
+pkgrel=2
 pkgdesc="Python bindings to the magic library"
 arch=('any')
 url='http://darwinsys.com/file/'
-makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 license=('custom')
 source=("ftp://ftp.astron.com/pub/file/file-${pkgver}.tar.gz")
 sha512sums=('3ec5e51ffb7a82defa74845a90fbc983f6e169fc116606049bc01ff6e720d340c8abf6eb7a08b9ac1099162a5c02deac3633b07b039d486344c8abd9052ca751')
 
 package_python-magic() {
-  depends=('python')
+  cd "${srcdir}/file-${pkgver}/python"
 
-  cd "${srcdir}/file-${pkgver}/python"
   python setup.py install --root="${pkgdir}" --optimize=1
-  install -Dm0644 "${srcdir}/file-${pkgver}/COPYING" \
-    "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
-}
 
-package_python2-magic() {
-  depends=('python2')
-
-  cd "${srcdir}/file-${pkgver}/python"
-  python2 setup.py install --root="${pkgdir}" --optimize=1
   install -Dm0644 "${srcdir}/file-${pkgver}/COPYING" \
     "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
 }



More information about the arch-commits mailing list