[arch-commits] Commit in (4 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Sat Apr 10 16:08:43 UTC 2021


    Date: Saturday, April 10, 2021 @ 16:08:42
  Author: yan12125
Revision: 915582

python-unidiff: a new dependency of buildbot

Ref: https://github.com/buildbot/buildbot/pull/5499

Added:
  python-unidiff/
  python-unidiff/repos/
  python-unidiff/trunk/
  python-unidiff/trunk/PKGBUILD

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

Added: python-unidiff/trunk/PKGBUILD
===================================================================
--- python-unidiff/trunk/PKGBUILD	                        (rev 0)
+++ python-unidiff/trunk/PKGBUILD	2021-04-10 16:08:42 UTC (rev 915582)
@@ -0,0 +1,31 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: xiretza <xiretza+aur at xiretza.xyz>
+# Contributor: Adhityaa Chandrasekar <c.adhityaa at gmail.com>
+
+pkgname=python-unidiff
+pkgver=0.6.0
+pkgrel=3
+pkgdesc='Simple Python library to parse and interact with unified diff data'
+arch=('any')
+url="https://github.com/matiasb/python-unidiff"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/u/unidiff/unidiff-$pkgver.tar.gz")
+sha256sums=('90c5214e9a357ff4b2fee19d91e77706638e3e00592a732d9405ea4e93da981f')
+
+build() {
+  cd unidiff-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd unidiff-$pkgver
+  python -m unittest discover -s tests
+}
+
+package() {
+  cd unidiff-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list