blob: 0d9db50fb91222aabe570f3f4265ccef2e33a83a (
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
52
|
# Maintainer: Morbius <archlinux@seichter.de>
# vim: noet
# shellcheck shell=bash disable=2034
pkgname="automx2"
pkgver="2025.1"
pkgrel=1
pkgdesc="Mail User Agent (email client) configuration made easy"
backup=("etc/automx2/automx2.conf")
install="install.sh"
depends=("python"
"python-flask"
"python-flask-migrate"
"python-flask-sqlalchemy>=3.1.1"
"python-ldap3"
"python-sqlalchemy>=2.0.31")
makedepends=("python-build" "python-installer" "python-wheel")
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"
"automx2.conf"
"automx2.service")
b2sums=('1bae32e843212632e7ad6e6cc5448ab27b48dd619c1886aadb832c2d6d8b6d49437911d505dcce6491425b7ceb9d837b32886ab1b4835446a88208b9bce70455'
'e7afbacc9166556323f1c46f7bf65a906725cfce31f774f5bd47a5ab32102dacfd318c65c8524cf963918178097f8643b597c72db9514e131ee35d21e05240ce'
'b542063ed441dbcfb6c23a8bec997177176d102f9e97bb1d6f97ad84b8f9336ee14556138fc24b24d9ee4a21700b7e4cceb99e53f3cb0201590f489d718f8163')
arch=("any")
license=("GPL3")
url="https://github.com/rseichter/automx2"
documentation="https://rseichter.github.io/automx2/"
build() {
pushd >/dev/null "${pkgname}-${pkgver}" || exit 1
python -m build --wheel
popd >/dev/null || exit 1
}
check() {
pushd >/dev/null "${pkgname}-${pkgver}" || exit 1
AUTOMX2_CONF=tests/unittest.conf PYTHONPATH=src python -m unittest discover -v tests/
popd >/dev/null || exit 1
}
# shellcheck disable=SC2154
package() {
pushd >/dev/null "${pkgname}-${pkgver}" || exit 1
python -m installer --destdir="${pkgdir}" dist/*.whl
install -D -m 0644 "${srcdir}/${pkgname}.conf" "${pkgdir}/etc/${pkgname}/${pkgname}.conf"
install -D -m 0644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
local x
for x in README* docs/*; do
install -D -m 0644 "${x}" "${pkgdir}/usr/share/doc/${pkgname}/$(basename "${x}")"
done
popd >/dev/null || exit 1
}
|