[arch-commits] Commit in python-identify/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Mar 2 18:34:14 UTC 2021


    Date: Tuesday, March 2, 2021 @ 18:34:13
  Author: felixonmars
Revision: 877763

archrelease: copy trunk to community-testing-any

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

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

Copied: python-identify/repos/community-testing-any/PKGBUILD (from rev 877762, python-identify/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-03-02 18:34:13 UTC (rev 877763)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+
+_name=identify
+pkgname=python-identify
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="File identification library for Python"
+arch=('any')
+url="https://github.com/chriskuehl/identify"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-editdistance' 'python-pytest')
+source=("${_name}-${pkgver}.tar.gz::https://github.com/chriskuehl/${_name}/archive/v${pkgver}.tar.gz")
+sha512sums=('adc09239518c2f529b8c6d12802d9df042fd44a22aef9da3554e852a948dd64ff2be9826d49a9e13d4ccf91400c70e62fa601cc6ce90c9ef806c7feae9b9c669')
+b2sums=('afb1de3125a0ac6e84e1cef37770a5199bf329582040ef697146df2a2eeedc80f6f198a55c61162a5294f51d1659d30c05d59857d939d0f699bb01ca5422c1a4')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list