blob: 161d7d3a330dfde6d8bf429f8b378017aac4b508 (
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
|
# Maintainer: ksandr <ru@ksandr.online>
_pkgname=python-rssd
pkgname="${_pkgname}-usermode"
_commit=0ecf85c
pkgver=2.${_commit}
pkgrel=3
pkgdesc='A service for displaying the latest news from RSS feeds via notify.'
_pkgdesc_ru='Cервис отображениея последних новостей из лент RSS через notify.'
arch=('any')
license=('GPL')
install=${pkgname}.install
provides=("${_pkgname}")
url="https://gitflic.ru/project/ksandr/${_pkgname}"
depends=('python' 'dbus-python' 'python-feedparser' 'python-aiohttp' 'python-aiofiles')
source=(git+${url}.git#commit=${_commit})
md5sums=('SKIP')
prepare() {
tar -zxvf ${srcdir}/${_pkgname}/icons.tar.gz
}
package() {
install -Dm755 "${srcdir}/${_pkgname}/${_pkgname}.py" "${pkgdir}/$HOME/.local/bin/${_pkgname}.py"
install -Dm644 "${srcdir}/${_pkgname}/settings.ini" "${pkgdir}/$HOME/.config/${_pkgname}/settings.ini"
install -Dm644 "${srcdir}/${_pkgname}/readme.md" "${pkgdir}/$HOME/.config/${_pkgname}/readme.md"
install -Dm644 "${srcdir}/${_pkgname}/readme_EN.md" "${pkgdir}/$HOME/.config/${_pkgname}/readme_EN.md"
install -d "${pkgdir}/$HOME/.local/share/icons/hicolor/48x48/apps"
install -Dm444 "${srcdir}/icons/"* "${pkgdir}/$HOME/.local/share/icons/hicolor/48x48/apps/"
install -Dm644 "${srcdir}/${_pkgname}/${_pkgname}-usermode.service" "${pkgdir}/$HOME/.local/share/systemd/user/${_pkgname}.service"
install -Dm644 "${srcdir}/${_pkgname}/${_pkgname}.timer" "${pkgdir}/$HOME/.local/share/systemd/user/${_pkgname}.timer"
chown $USER:$USER -Rc ${pkgdir}
}
|