[arch-commits] Commit in sopel/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed May 20 17:21:44 UTC 2020
Date: Wednesday, May 20, 2020 @ 17:21:42
Author: felixonmars
Revision: 630892
archrelease: copy trunk to community-any
Added:
sopel/repos/community-any/PKGBUILD
(from rev 630891, sopel/trunk/PKGBUILD)
Deleted:
sopel/repos/community-any/PKGBUILD
----------+
PKGBUILD | 89 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 46 insertions(+), 43 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-20 17:21:25 UTC (rev 630891)
+++ PKGBUILD 2020-05-20 17:21:42 UTC (rev 630892)
@@ -1,43 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=sopel
-pkgver=7.0.0
-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-sqlalchemy')
-makedepends=('python-sphinx' 'python-sphinxcontrib-autoprogram')
-checkdepends=('python-pytest-runner')
-backup=('etc/sopel.cfg')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/sopel-irc/sopel/archive/v$pkgver.tar.gz")
-sha512sums=('d6745ee71527848fe782be9a939e61847315583eb46347fa67e48f7a9acbda30164f43282243485bbdd4e81969688aed60f611136b00aa797dc7b05bb95e85b6')
-
-prepare() {
- cd sopel-$pkgver
- sed -i -e 's/<3/<4/' -e 's/<6/<7/' {dev-,}requirements.txt
-}
-
-build() {
- cd sopel-$pkgver
- python setup.py build egg_info
- PYTHONPATH="$PWD" make -C docs man
-}
-
-check() {
- cd sopel-$pkgver
- 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"
-}
Copied: sopel/repos/community-any/PKGBUILD (from rev 630891, sopel/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-05-20 17:21:42 UTC (rev 630892)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=sopel
+pkgver=7.0.1
+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-sqlalchemy')
+makedepends=('python-sphinx' 'python-sphinxcontrib-autoprogram')
+checkdepends=('python-pytest-runner')
+backup=('etc/sopel.cfg')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sopel-irc/sopel/archive/v$pkgver.tar.gz"
+ sopel-ddg-test-fix.patch::https://github.com/sopel-irc/sopel/commit/a687ab706f47a487bf489f6bb32d773033f64f7b.patch)
+sha512sums=('99ab27dc0b6dae4aac5ceaaa1e304b41e34ba484a8036c4c6ad5893ce18d982bfc52a2450e48cd87d03b71c1260345febcac16d33588157d1afd760a984e782c'
+ 'e6071860acaf31bd0a38390a5e38e76fa8ec144d45e9cf15bb80508a4bd4467eb25dbcbe2036f9e8ce6d14f4d6adce0b89e8e9ea558601f0f47a6c936ac4bbd1')
+
+prepare() {
+ cd sopel-$pkgver
+ patch -p1 -i ../sopel-ddg-test-fix.patch
+ sed -i -e 's/<3/<4/' -e '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