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

pkgname=dtbell-git
pkgver=v1.1.1.r3.ge85796b
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-hatchling"
    "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"
}