[arch-commits] Commit in python-magic/repos (community-any community-any/PKGBUILD)

Lukas Fleischer lfleischer at nymeria.archlinux.org
Sat Apr 12 23:26:00 UTC 2014


    Date: Sunday, April 13, 2014 @ 01:25:59
  Author: lfleischer
Revision: 109295

archrelease: copy trunk to community-any

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

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

Copied: python-magic/repos/community-any/PKGBUILD (from rev 109294, python-magic/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2014-04-12 23:25:59 UTC (rev 109295)
@@ -0,0 +1,31 @@
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+
+pkgbase=python-magic
+pkgname=(python-magic python2-magic)
+pkgver=5.18
+pkgrel=1
+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=('d420d8f2990cd344673acfbf8d76ff5a')
+
+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