summaryrefslogtreecommitdiff
path: root/update-all/PKGBUILD
blob: 73139c10147349e9bbf10116e130a067dbacdc44 (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
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=update-all
pkgver=0.8.7
pkgrel=1
pkgdesc="Simple script for installing updated packages"
arch=('any')
url="https://git.eckner.net/Erich/${pkgname}"
license=('GPL')
groups=()
OS=$(
  awk -F= '$1 == "ID" {print $2}' /etc/os-release
)
_arch_depends=(
  'archlinux-contrib'
)
depends=(
  'pacman-contrib'
  'vim'
)
if [ "${OS}" = 'arch' ]; then
  depends+=("${_arch_depends[@]}")
fi
makedepends=()
checkdepends=()
optdepends=(
  'check-kernel:            check if reboot is necessary after update'
  'shutdownasap:            allow for less-interuptive reboot'
  'simple-package-report:   allow for telemetry data upload'
)
provides=()
conflicts=()
replaces=()
backup=('etc/update-me.conf' 'etc/update-all.conf')
options=()
source=(
    "https://git.eckner.net/Erich/${pkgname}/snapshot/${pkgname}-${pkgver}.tar.xz"
)
sha512sums=('12b64c576a2baaf310a8cf9a6b5adef62a2aeef50ebdb88c9168f6b6c586e7d32a46dffee72b0ceb61549f0e7b5fab615f2895d2b4bcb4d642429db93e1e94cc')

build() {

    cd ${pkgname}-${pkgver}
    make

}

package() {

    cd ${pkgname}-${pkgver}
    make DESTDIR=${pkgdir} install

}