Files
PKGBUILDS/cachy-auto-update/PKGBUILD
T

36 lines
1.3 KiB
Bash

# Maintainer: Felitendo
# This PKGBUILD is updated automatically:
# https://github.com/Felitendo/PKGBUILDS
pkgname=cachy-auto-update
pkgver=1.0.9
pkgrel=1
pkgdesc="Unattended background updates for CachyOS, aware of battery, gaming and manual package management"
arch=('any')
url="https://github.com/Felitendo/cachy-auto-update"
license=('GPL-3.0-or-later')
depends=('bash' 'systemd' 'pacman' 'pacman-contrib' 'util-linux' 'sudo'
'gettext')
makedepends=('gettext' 'scdoc')
optdepends=('paru: AUR package updates'
'yay: AUR package updates'
'base-devel: required to build AUR packages'
'flatpak: Flatpak updates'
'libnotify: desktop notifications'
'gearlever: AppImage updates')
backup=('etc/cachy-auto-update/cachy-auto-update.conf'
'etc/logrotate.d/cachy-auto-update')
install="${pkgname}.install"
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('09be1fb5f0049dfabd206a2fbc0b4e4be36dde4ef44271846e7de313bc36d945')
build() {
# pass the version being packaged so `cachy-auto-update --version` cannot
# drift away from pkgver
make -C "${pkgname}-${pkgver}" VERSION="$pkgver"
}
package() {
make -C "${pkgname}-${pkgver}" VERSION="$pkgver" DESTDIR="$pkgdir" install
}