Date: Saturday, April 8, 2023 @ 03:11:20
  Author: felixonmars
Revision: 1441556

archrelease: copy trunk to community-staging-any

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

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

Copied: python-identify/repos/community-staging-any/PKGBUILD (from rev 1441555, 
python-identify/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 03:11:20 UTC (rev 1441556)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+
+_name=identify
+pkgname=python-identify
+pkgver=2.5.22
+pkgrel=2
+pkgdesc="File identification library for Python"
+arch=(any)
+url="https://github.com/pre-commit/identify";
+license=(MIT)
+depends=(python)
+makedepends=(
+  python-build
+  python-installer
+  python-setuptools
+  python-wheel
+)
+checkdepends=(
+  python-pytest
+  python-ukkonen
+)
+optdepends=(
+  'python-editdistance-s: for returning license identifiers'
+  'python-ukkonen: for returning license identifiers'
+)
+source=($_name-$pkgver.tar.gz::https://github.com/pre-commit/$_name/archive/refs/tags/v$pkgver.tar.gz)
+sha512sums=('a2133cf8a2dc329af5bf10c8c6186c273ec6d1d2dc6941550b3c9d749f14e31fdbee71b978b26384661f92ac5cf31afb5e4164ed646c5e3a2c2b5962cdddc1e6')
+b2sums=('289a26bb570a3a4c369013837783cad8b4503c6bf3732dab5b2e5785e19884fec8a39f31e37833a242ddd852f9b401af5bb71655c5ed3107e2575a960e663035')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest -vv
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}

Reply via email to