[arch-commits] Commit in python-magic/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Dec 25 18:58:28 UTC 2016
Date: Sunday, December 25, 2016 @ 18:58:27
Author: foutrelis
Revision: 202313
archrelease: copy trunk to community-staging-any
Added:
python-magic/repos/community-staging-any/
python-magic/repos/community-staging-any/PKGBUILD
(from rev 202312, python-magic/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-magic/repos/community-staging-any/PKGBUILD (from rev 202312, python-magic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 18:58:27 UTC (rev 202313)
@@ -0,0 +1,31 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+
+pkgbase=python-magic
+pkgname=(python-magic python2-magic)
+pkgver=5.29
+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=('b7b57b36b577c9cede2f2d1342203302')
+
+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