summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0b5085560910f64dcb7da1ac6af4c39b5cc726a (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
# Maintainer: MichaƂ Minarowski <neoney@pm.me>
_pkgname="discord-canary-update-skip"
pkgname="$_pkgname"-git
_discordversion="canary"
pkgver=r4.3cc6b1e
pkgrel=1
pkgdesc="A simple script to fix Discord Canary wanting to update while the update isn't in the repos."
arch=('any')
url="https://github.com/n3oney/discord-update-skip"
license=('MIT')
depends=('jq' 'discord-canary' 'bash')
makedepends=('git')
install="$_pkgname".install
changelog=
source=('git+https://github.com/n3oney/discord-update-skip.git#branch='${_discordversion}
  )
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir"/discord-update-skip
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -Dm644 "$srcdir"/discord-update-skip/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm755 "$srcdir"/discord-update-skip/set-config.sh "$pkgdir/usr/bin/$_pkgname"
}