[arch-commits] Commit in python-magic/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 15:35:55 UTC 2020
Date: Monday, November 9, 2020 @ 15:35:54
Author: foutrelis
Revision: 747006
archrelease: copy trunk to community-staging-any
Added:
python-magic/repos/community-staging-any/
python-magic/repos/community-staging-any/PKGBUILD
(from rev 747005, python-magic/trunk/PKGBUILD)
----------+
PKGBUILD | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
Copied: python-magic/repos/community-staging-any/PKGBUILD (from rev 747005, python-magic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:35:54 UTC (rev 747006)
@@ -0,0 +1,22 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+
+pkgname=python-magic
+pkgver=5.39
+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=('9cf1a7b769c56eb6f5b25c66ce85fa1300128396e445b2e53dbbd8951e5da973a7a07c4ef9f7ebd1fe945d47bdaf2cd9ef09bd2be6c217a0bcb907d9449835e6')
+
+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