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

Felix Yan fyan at archlinux.org
Mon Sep 21 07:27:02 UTC 2015


    Date: Monday, September 21, 2015 @ 09:27:02
  Author: fyan
Revision: 141354

archrelease: copy trunk to community-staging-any

Added:
  sopel/repos/community-staging-any/
  sopel/repos/community-staging-any/PKGBUILD
    (from rev 141353, sopel/trunk/PKGBUILD)

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

Copied: sopel/repos/community-staging-any/PKGBUILD (from rev 141353, sopel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-21 07:27:02 UTC (rev 141354)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=sopel
+pkgver=6.0.0
+pkgrel=2
+pkgdesc="An easy-to-use and highly extensible IRC Bot framework (Formerly Willie)"
+arch=('any')
+license=('custom:EFL')
+url='http://sopel.chat'
+depends=('python-setuptools' 'sqlite')
+optdepends=('python-feedparser: nws and rss modules'
+            'python-pytz: remind module'
+            'python-lxml: xkcd module'
+            'python-pyenchant: spellchek module'
+            'python-praw: reddit module'
+            'python-pygeoip: geoip module')
+makedepends=('git' 'python-sphinx')
+checkdepends=('python-pytest' 'python-feedparser' 'python-pytz' 'python-lxml'
+              'python-pyenchant' 'python-praw' 'python-pygeoip' 'ipython')
+backup=('etc/sopel.cfg')
+source=("git+https://github.com/sopel-irc/sopel.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  sed -e 's|willie|sopel|g' -e 's|Willie|Sopel|g' -i sopel/contrib/willie{.cfg,.service,.conf}
+}
+
+build() {
+  cd "$srcdir/sopel"
+  python setup.py build
+  make -C docs man
+}
+
+check() {
+  cd "$srcdir/sopel"
+  py.test --ignore build || warning "Tests failed"
+}
+
+package() {
+  cd "$srcdir/sopel"
+  python setup.py install --root="${pkgdir}" --optimize=1
+
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 contrib/willie.cfg "$pkgdir/etc/sopel.cfg"
+  install -Dm644 contrib/willie.service "$pkgdir/usr/lib/systemd/system/sopel.service"
+  install -Dm644 contrib/willie.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