aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sopel/APKBUILD
blob: 540b91c752cff4186c13a4781e9a85a503fc5462 (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
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=sopel
pkgver=6.5.3
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-geoip py3-setuptools py3-enchant
	py3-xmltodict py3-praw py3-tz"
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/v6.5.3.tar.gz
	sopel.initd
        sopel.conf"
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="6f8f3003c87f8092a7a05320197237033f8d650402155f1f71482078e2bb851aa5f1942d2ccf378d3446011326f174087f478754e212b40e2216e2ad46a82812  sopel-6.5.3.tar.gz
1d6b39697d767085530f1db5ba763554c6503ab82b792bdb48c7fef65e4424fe30740ab758ebd3f1ccdd6f2340a9ac9e3dfe44fff064969106717169160ece7b  sopel.initd
d90379dc5a2d8c8ff52a15d1c341d4cbad919707fadc578d4ae78db45efafad5e6add270876aa982086ac78d99729b0346aa565512190b9fc8cd77020ba91445  sopel.conf"