blob: cf7bedac9d5a6f85d0cbe783f14caebed449f392 (
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
|
# Maintainer: bretello <bretello@distruzione.org>
pkgname=bretellofier
pkgver=0.9.0
pkgrel=2
pkgdesc="Command line telegram notifier"
arch=(any)
url="https://git.decapod.one/brethil/bretellofier"
license=('dowhateverthefuckyouwant')
depends=(python python-requests)
makedepends=(python-wheel python-build python-setuptools-scm python-installer)
source=("git+https://git.decapod.one/brethil/bretellofier")
sha256sums=(SKIP)
prepare() {
# Do a sanity check in the environment of the builder so the build process doesn't place files into a wrong directory.
if [[ -n $VIRTUAL_ENV ]]; then
echo "It seems a virtualenv is enabled. Please deactivate it before building this package."
return 1
fi
}
pkgver() {
cd "$pkgname"
python -m setuptools_scm
}
build() {
cd "$pkgname"
python -m build --no-isolation --wheel
}
package() {
cd "$pkgname"
python -m installer --destdir "$pkgdir" dist/*.whl
}
post_install() {
echo "Run \"bretellofier --generate-config > ~/.bretellofier.conf\" to generate a sample config."
echo "Replace token and name lines with your bot's token and telegram id"
echo "Command line flags/environment variables can also be used. See bretellofier --help".
}
|