summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 545f5c74489884bbba0641b28f18013fb9fb5909 (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
pkgname=betterdiscord-git
pkgver=0.2.82.r281.gb92989a
pkgrel=1
pkgdesc='Discord extension that introduces new features like BTTV emotes and plugin support. Git master branch'
arch=('any')
url='https://betterdiscord.net/home/'
license=('MIT')
depends=('discord')
makedepends=('git' 'asar')
install='BetterDiscord.install'
source=("${pkgname%-git}::git+https://github.com/Jiiks/BetterDiscordApp.git" LICENSE)
md5sums=('SKIP'
         '8414480728c5dc0d4ca9a93cfaf67acb')

pkgver() {
  cd "${srcdir}/${pkgname%-git}"
  git describe --long --tags | sed 's/-/.r/;s/-/./'
}

package() {
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  # Get rid of git files.
  cd "${srcdir}/${pkgname%-git}"
  rm -rf ".git"
  rm "./.gitignore"

  install -d "${pkgdir}/usr/lib/${pkgname}/"
  cp -a "./." "${pkgdir}/usr/lib/${pkgname}"
}