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

Felix Yan felixonmars at archlinux.org
Sat Mar 14 19:45:24 UTC 2020


    Date: Saturday, March 14, 2020 @ 19:45:23
  Author: felixonmars
Revision: 597128

archrelease: copy trunk to community-any

Added:
  python-identify/repos/community-any/
  python-identify/repos/community-any/PKGBUILD
    (from rev 597127, python-identify/trunk/PKGBUILD)

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

Copied: python-identify/repos/community-any/PKGBUILD (from rev 597127, python-identify/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-03-14 19:45:23 UTC (rev 597128)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-identify
+pkgver=1.4.11
+pkgrel=1
+pkgdesc="File identification library for Python"
+url="https://github.com/chriskuehl/identify"
+license=('MIT')
+arch=('any')
+depends=('python')
+optdepends=('python-editdistance: for license support')
+makedepends=('python-setuptools' 'python-editdistance')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/chriskuehl/identify/archive/v$pkgver.tar.gz")
+sha512sums=('e28c4c9f5a9b2499def3b5ad7b29f17066a4fd29396af90d7d7d5806bfe35f078c13c3844206d0c90ec18215eef0e72f70f435b2fb48b7bf81d660d69fe5dd9e')
+
+build() {
+  cd identify-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd identify-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd identify-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list