[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sun Nov 22 17:11:22 UTC 2020


    Date: Sunday, November 22, 2020 @ 17:11:22
  Author: felixonmars
Revision: 759276

addpkg: python-pydle 0.9.4-1

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

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

Added: python-pydle/trunk/PKGBUILD
===================================================================
--- python-pydle/trunk/PKGBUILD	                        (rev 0)
+++ python-pydle/trunk/PKGBUILD	2020-11-22 17:11:22 UTC (rev 759276)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pydle
+pkgver=0.9.4
+pkgrel=1
+pkgdesc="A compact, flexible and standards-abiding IRC library"
+url="https://github.com/Shizmob/pydle"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+optdepends=('python-pure-sasl: for SASL support')
+checkdepends=('python-pytest' 'python-pure-sasl')
+source=("https://github.com/Shizmob/pydle/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('3b61b603aca1f6da6cc8674fe07f3f14a6d14a7db27c33d376c6e5275feb1a00b4e6a8c19d1a52a67e3dae1440292a8cbac13fc0a73d87b5205d8ecde03ec61c')
+
+build() {
+  cd pydle-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pydle-$pkgver
+  # https://github.com/Shizmob/pydle/issues/78
+  pytest || echo "Tests failed"
+}
+
+package() {
+  cd pydle-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list