[arch-commits] Commit in sopel/repos (3 files)

Jelle van der Waa jelle at gemini.archlinux.org
Fri Oct 15 07:09:14 UTC 2021


    Date: Friday, October 15, 2021 @ 07:09:14
  Author: jelle
Revision: 1030243

db-move: moved sopel from [community-staging] to [community-testing] (any)

Added:
  sopel/repos/community-testing-any/
  sopel/repos/community-testing-any/PKGBUILD
    (from rev 1030242, sopel/repos/community-staging-any/PKGBUILD)
Deleted:
  sopel/repos/community-staging-any/

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

Copied: sopel/repos/community-testing-any/PKGBUILD (from rev 1030242, sopel/repos/community-staging-any/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-10-15 07:09:14 UTC (rev 1030243)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=sopel
+pkgver=7.1.2
+pkgrel=1
+pkgdesc="An easy-to-use and highly extensible IRC Bot framework (Formerly Willie)"
+arch=('any')
+license=('custom:EFL')
+url='https://sopel.chat'
+depends=('python-setuptools' 'sqlite' 'python-xmltodict' 'python-pytz' 'python-praw'
+         'python-geoip2' 'python-requests' 'python-dnspython' 'python-sqlalchemy1.3')
+makedepends=('python-sphinx' 'python-sphinxcontrib-autoprogram')
+checkdepends=('python-pytest-runner' 'python-requests-mock')
+backup=('etc/sopel.cfg')
+source=("https://github.com/sopel-irc/sopel/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('dc1f5f99b7ec83ee454c7e178614cd4ae05eef91f9f0230d09756fe405a63ffe428f1408ed4a811c83facf94d475d9e5e5e4ec4f02656564afbe39894a189a1d')
+
+prepare() {
+  cd sopel-$pkgver
+  sed -i 's/<6/<8/' {dev-,}requirements.txt
+}
+
+build() {
+  cd sopel-$pkgver
+  python setup.py build egg_info
+  PYTHONPATH="$PWD" make -C docs man
+}
+
+check() {
+  cd sopel-$pkgver
+  LC_CTYPE=en_US.UTF-8 python setup.py pytest --addopts "--ignore build/"
+}
+
+package() {
+  cd sopel-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 contrib/sopel.cfg "$pkgdir/etc/sopel.cfg"
+  install -Dm644 contrib/sopel.service "$pkgdir/usr/lib/systemd/system/sopel.service"
+  install -Dm644 contrib/sopel.conf "$pkgdir/usr/lib/tmpfiles.d/sopel.conf"
+  install -Dm644 docs/build/man/sopel.1 "$pkgdir/usr/share/man/man1/sopel.1"
+}



More information about the arch-commits mailing list