blob: c0dd352ead664e9a136a9da9f129323db4541782 (
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
|
# Maintainer: Lars GrĂ¼ter <lagru+pacautomation@mailbox.org>
pkgname="pacautomation"
pkgver="1.0.1"
pkgrel="2"
pkgdesc="Periodic background service for automated maintenance around pacman."
arch=("any")
url="https://gitlab.com/lagru/pacautomation"
license=("GPL-2.0-or-later")
depends=("python>=3.11" "hicolor-icon-theme")
optdepends=("breeze-icons: icons for desktop notifications")
backup=("etc/pacautomation.conf")
install="pacautomation.install"
changelog="CHANGELOG.md"
source=("https://gitlab.com/lagru/pacautomation/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
# Update with updpkgsums
sha256sums=('ccba61e124e452d6d5b613a63b922eb926a6cf1b96f29bb58aea218bbda73c4f')
build() {
cd "${pkgname}-v${pkgver}"
python setup.py build
}
package() {
cd "${pkgname}-v${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1
cd "src"
install -Dm 644 "pacautomation.conf" -t "${pkgdir}/etc/"
install -Dm 644 "pacautomation-notify.desktop" -t "${pkgdir}/etc/xdg/autostart/"
install -Dm 644 "pacautomation.notifyrc" -t "${pkgdir}/usr/share/knotifications5/"
install -Dm 644 "pacautomation.svg" -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"
cp -r "systemd/" "${pkgdir}/usr/lib/"
find "${pkgdir}/usr/lib/systemd/" -type d -exec chmod 755 {} \;
find "${pkgdir}/usr/lib/systemd/" -type f -exec chmod 644 {} \;
# Create spool directory
install -dm 755 "${pkgdir}/var/spool/pacautomation/notify"
}
|