summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c93d4e6d53da0b39605d3815d0555604b2658793 (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
# Maintainer: Drew Nutter <dnut@users.noreply.github.com>
pkgname=upgrade
pkgver=0.3.0
pkgrel=1
pkgdesc='Automate system upgrades'
url='https://github.com/dnut/upgrade'
source=("git+https://github.com/dnut/upgrade#tag=$pkgver")
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
license=('GPL3')
makedepends=()
depends=('paru' 'kernel-modules-hook')
optdepends=('flatpak')
sha256sums=('SKIP')
install=$pkgname.install
backup=('etc/upgrade.conf')

build() {
    echo
}

package() {
    cd "$srcdir/$pkgname"

    install -Dm755 upgrade "${pkgdir}/usr/bin/upgrade"
    install -Dm755 clearpkgcache "${pkgdir}/usr/bin/clearpkgcache"

    install -Dm644 upgrade.service "${pkgdir}/usr/lib/systemd/system/upgrade.service"
    install -Dm644 upgrade.timer "${pkgdir}/usr/lib/systemd/system/upgrade.timer"
    
    install -Dm640 upgrade.sudoers "${pkgdir}/etc/sudoers.d/upgrade"
    install -Dm644 upgrade.conf "${pkgdir}/etc/upgrade.conf"
}