blob: 90c715b155b4653dea83916c27b9d772996578b8 (
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
53
54
55
|
# Maintainer: peippo <christoph.fink@gmail.com>
pkgname=python-wolkenbruch
_name="${pkgname#python-}"
pkgdesc="Remind you to pack your rain gear when it’s forecast to rain"
url="https://gitlab.com/christophfink/wolkenbruch/"
pkgver=0.7.3
pkgrel=2
arch=("any")
license=("GPL-3.0-or-later")
makedepends=(
"python-build"
"python-hatchling"
"python-installer"
"python-wheel"
)
depends=(
"python"
"python-configargparse"
"python-geocoder"
"python-importlib-resources"
"python-pyaml"
"python-requests"
)
source=("https://github.com/christophfink/${_name}/releases/download/v${pkgver}/${_name}-${pkgver}.tar.gz")
b2sums=('bd17b9c5776f31af26c3d47ae275a36dfc26a993f62c2f193f585a80ea36e07a77161ca651d72433c0938ecb1a725bb4634c8f1d7c994ec40d650906a10bbc72')
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install \
-Dm0644 \
"src/wolkenbruch/wolkenbruch.yml.template" \
"${pkgdir}/etc/wolkenbruch.yml"
install \
-Dm0644 \
"extra/systemd/wolkenbruch.service" \
"${pkgdir}/usr/lib/systemd/user/wolkenbruch.service"
install \
-Dm0644 \
"extra/systemd/wolkenbruch.timer" \
"${pkgdir}/usr/lib/systemd/user/wolkenbruch.timer"
}
|