summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3533df22480dcf97788f45291e10908ef2b85082 (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
53
54
55
56
57
58
59
60
61
62
63
# Maintainer: dreieck

# PKGBUILD last time manually edited: At least on 2024-04-03.

_pkgname=idos-package-updater-script
pkgname="${_pkgname}"
epoch=0
pkgver=20240403.1
pkgrel=1
pkgdesc="Bash script which automates the process of updating installed IDOS timetable browser related packages by reinstalling and thus fetching the newest version."
arch=('any')
license=('LicenseRef-Public_Domain')
groups=(
  "idos-timetable"
)
depends=(
  "bash"
  "util-linux" # for 'column'-executable.
  "pacman"
  "yay"
)
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()

source=(
  "idos-packages-update.sh"
  "copying.txt"
)

sha256sums=(
  "4c91d73d02ef0096ac46ccb79495ac015b573709a9b54bc806e3b98ff3c73f9a"
  "c3cbff25307e905545788f5c74cc137d79706c60549092f2a37919b93cf55ee3"
)


pkgver() {
  cd "${srcdir}"
  ./idos-packages-update.sh --version
}


prepare() {
  chmod a+x "${srcdir}/idos-packages-update.sh"
}


package() {
  _instdirbase='/opt/idos-timetable'
  _instdir="${pkgdir}/${_instdirbase}"
  _licdirbase="/usr/share/licenses/${pkgname}"
  _licdir="${pkgdir}/${_licdirbase}"
  _execdirbase='/usr/bin'
  _execdir="${pkgdir}/${_execdirbase}"
  
  install -v -D -m755 "${srcdir}/idos-packages-update.sh" "${_instdir}/idos-packages-update.sh"
  install -v -D -m644 "${srcdir}/copying.txt" "${_licdir}/copying.txt"
  install -v -d -m755 "${_execdir}"

  ln -sv "${_instdirbase}/idos-packages-update.sh" "${_execdir}/"
}