blob: 05168a0a4d01a15ee03b20a628d192e72a70fcd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=sopel
pkgver=7.0.0
pkgrel=0
pkgdesc="An easy-to-use and highly extensible IRC Bot framework"
url="https://sopel.chat/"
arch="noarch"
license="EFL-2.0"
depends="python3 ipython py3-requests py3-geoip2 py3-setuptools py3-enchant py3-dnspython
py3-xmltodict py3-praw py3-tz"
makedepends="py3-pbr"
checkdepends="py3-pytest"
install="$pkgname.pre-install"
pkgusers="sopel"
pkggroups="sopel"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sopel-irc/sopel/archive/v${pkgver}.tar.gz
add-tpaste-us.patch
sopel.initd
sopel.conf
update-requirements.patch"
options="!check" # test suite issues
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
python3 pytest_run.py sopel test
}
package() {
cd "$builddir"
python3 setup.py install --root="$pkgdir"
install -Dm0755 "$srcdir"/sopel.initd "$pkgdir"/etc/init.d/sopel
install -Dm0644 "$srcdir"/sopel.conf "$pkgdir"/etc/conf.d/sopel
}
sha512sums="d6745ee71527848fe782be9a939e61847315583eb46347fa67e48f7a9acbda30164f43282243485bbdd4e81969688aed60f611136b00aa797dc7b05bb95e85b6 sopel-7.0.0.tar.gz
9d727acc68841c84e0cc0377aafad3a86f9fd4ad554030211e06ea95b73efd77cd4e4b847c382746a3827c484e1329bd04d9c51e07ca797cb345b1e9e97061f9 add-tpaste-us.patch
1d6b39697d767085530f1db5ba763554c6503ab82b792bdb48c7fef65e4424fe30740ab758ebd3f1ccdd6f2340a9ac9e3dfe44fff064969106717169160ece7b sopel.initd
d90379dc5a2d8c8ff52a15d1c341d4cbad919707fadc578d4ae78db45efafad5e6add270876aa982086ac78d99729b0346aa565512190b9fc8cd77020ba91445 sopel.conf
849ed6da9295b1e3c3e4942a8ec5be61f7192da34814029af78e9d195d1c4739fcf80201c1bd100e1ba1ea1ae68715097d9009a105bd2dcce44eea5dacf80450 update-requirements.patch"
|