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

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 17:51:51 UTC 2015


    Date: Saturday, September 19, 2015 @ 19:51:51
  Author: foutrelis
Revision: 141084

archrelease: copy trunk to community-staging-any

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

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

Copied: python-magic/repos/community-staging-any/PKGBUILD (from rev 141083, python-magic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 17:51:51 UTC (rev 141084)
@@ -0,0 +1,31 @@
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+
+pkgbase=python-magic
+pkgname=(python-magic python2-magic)
+pkgver=5.19
+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")
+md5sums=('e3526f59023f3f7d1ffa4d541335edab')
+
+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