summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca6aae7ccb1db67505bc8da1ff26f14d4ca29fb2 (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
# Maintainer: Rose Spangler <132@ikl.sh>
_pkgname="minirss"
pkgname="${_pkgname}-git"
pkgver=v2.0.1.r0.g2727cd1
pkgrel=1
pkgdesc="A minuscule RSS notifier"
arch=("any")
url=https://git.ikl.sh/132ikl/minirss
license=("GPL3")
depends=("python>=3.7" "python-appdirs" "python-requests" "python-feedparser" "notification-daemon" "xdg-utils")
makedepends=("git")
optdepends=("dunst: enable middle click open link functionality")
provides=("minirss")
conflicts=("minirss")
source=("git+${url}.git")
md5sums=("SKIP")

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

package() {
    mkdir -p "${pkgdir}/usr/bin/" "${pkgdir}/usr/lib/systemd/user/"
    install -m755 "${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
    install -m644 "${_pkgname}/${_pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${_pkgname}.service"
    install -m644 "${_pkgname}/${_pkgname}.timer" "${pkgdir}/usr/lib/systemd/user/${_pkgname}.timer"
}