summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5da5fb65f4c4657582055400fd50b1db8bee11ae (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
# Maintainer: Escher Moore <aur@eschermoore.com>

pkgname=dtbell-git
pkgver=v1.1.0.r1.gec623b3
pkgrel=1
pkgdesc="A highly configurable Linux-based desktop notifier for RSS/Atom feeds."
arch=("x86_64")
url="https://github.com/eschermoore/ditchthebell"
license=("GPL3")
depends=(
    "python>=3.7"
    "python-aiohttp"
    "python-feedparser"
    "python-gobject"
    "python-pydbus"
    "python-dateutil"
    "python-pytz"
)
makedepends=(
    "git"
    "python-build"
    "python-installer"
    "python-wheel"
)
source=("${pkgname}::git+https://github.com/eschermoore/ditchthebell")
md5sums=("SKIP")

prepare() {
    git -C "${srcdir}/${pkgname}" clean -dfx
}

pkgver() {
    cd "${pkgname}"
    git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${pkgname}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${pkgname}"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}