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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 17:47:29 UTC 2018


    Date: Saturday, June 30, 2018 @ 17:47:29
  Author: foutrelis
Revision: 348702

archrelease: copy trunk to community-staging-any

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

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

Copied: python-magic/repos/community-staging-any/PKGBUILD (from rev 348701, python-magic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 17:47:29 UTC (rev 348702)
@@ -0,0 +1,31 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+
+pkgbase=python-magic
+pkgname=(python-magic python2-magic)
+pkgver=5.30
+pkgrel=2
+pkgdesc="Python bindings to the magic library"
+arch=('any')
+url='http://darwinsys.com/file/'
+makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+license=('custom')
+source=("ftp://ftp.astron.com/pub/file/file-${pkgver}.tar.gz")
+sha512sums=('473ee57517b449bae0832c17c9db914162c2404f0c669951f13a53f44ae288e6075907bac44fcfa8915f3d9313981a8bc15ea7e9851f584f95988bc76b2f20fc')
+
+package_python-magic() {
+  depends=('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