[arch-commits] Commit in python-magic/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:52:07 UTC 2019


    Date: Friday, October 25, 2019 @ 15:52:07
  Author: felixonmars
Revision: 519233

archrelease: copy trunk to community-staging-any

Added:
  python-magic/repos/community-staging-any/
  python-magic/repos/community-staging-any/PKGBUILD
    (from rev 519231, python-magic/trunk/PKGBUILD)

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

Copied: python-magic/repos/community-staging-any/PKGBUILD (from rev 519231, python-magic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:52:07 UTC (rev 519233)
@@ -0,0 +1,22 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+
+pkgname=python-magic
+pkgver=5.37
+pkgrel=2
+pkgdesc="Python bindings to the magic library"
+arch=('any')
+url='https://darwinsys.com/file/'
+depends=('python')
+makedepends=('python-setuptools')
+license=('custom')
+source=("ftp://ftp.astron.com/pub/file/file-${pkgver}.tar.gz")
+sha512sums=('bf153c15aebdd00329806231d20f295077b8b99efd0181d01279bcf3734a1718567df38cf75bc929eb8015ac98d29bb4bf1228d7ece8bfdfe14dd976391dd06d')
+
+package_python-magic() {
+  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"
+}



More information about the arch-commits mailing list