summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18cc286c463a20181250be90f69856b4748d8eba (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-update-skip"
pkgname="$_pkgname"-git
_discordversion="stable"
pkgver=r2.b860122
pkgrel=1
pkgdesc="A simple script to fix Discord 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' 'bash')
makedepends=('git')
install="$_pkgname".install
changelog=
source=('git+https://github.com/n3oney/discord-update-skip.git#branch='${_discordversion}
  )
sha256sums=('SKIP')

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

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