Date: Friday, September 16, 2016 @ 07:03:03
  Author: felixonmars
Revision: 189442

archrelease: copy trunk to community-any

Added:
  sopel/repos/community-any/PKGBUILD
    (from rev 189441, sopel/trunk/PKGBUILD)
Deleted:
  sopel/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   86 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 45 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2016-09-16 07:02:43 UTC (rev 189441)
+++ PKGBUILD    2016-09-16 07:03:03 UTC (rev 189442)
@@ -1,41 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonm...@archlinux.org>
-
-pkgname=sopel
-pkgver=6.3.1
-pkgrel=1
-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' 'python-xmltodict' 'python-pytz' 
'python-praw'
-         'python-pyenchant' 'python-pygeoip')
-makedepends=('git' 'python-sphinx')
-checkdepends=('python-pytest-runner' 'ipython')
-backup=('etc/sopel.cfg')
-source=("git+https://github.com/sopel-irc/sopel.git#tag=$pkgver";)
-md5sums=('SKIP')
-
-build() {
-  cd "$srcdir/sopel"
-  python setup.py build
-  make -C docs man
-}
-
-check() {
-  cd "$srcdir/sopel"
-  mv build ../
-  python setup.py ptr || warning "Tests failed"
-  mv ../build ./
-}
-
-package() {
-  cd "$srcdir/sopel"
-  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 189441, 
sopel/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2016-09-16 07:03:03 UTC (rev 189442)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=sopel
+pkgver=6.4.0
+pkgrel=1
+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' 'python-xmltodict' 'python-pytz' 
'python-praw'
+         'python-pyenchant' 'python-pygeoip')
+makedepends=('git' 'python-sphinx')
+checkdepends=('python-pytest' 'ipython')
+backup=('etc/sopel.cfg')
+source=("git+https://github.com/sopel-irc/sopel.git#tag=$pkgver";)
+md5sums=('SKIP')
+
+prepare() {
+  sed -i 's/requests>.*/requests/' sopel/requirements.txt
+
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd sopel
+  python setup.py build
+  make -C docs man
+}
+
+check() {
+  cd sopel
+  py.test --ignore=sopel.py --ignore=build/ || warning "Tests failed"
+}
+
+package() {
+  cd sopel
+  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"
+}

Reply via email to