summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d447b1c7831a587f1744e5db9e9c5f9211523aed (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
# Maintainer: Relwi <theofficialdork@hotmail.com>
# Maintainer: txtsd <aur.archlinux@ihavea.quest>

pkgname=fast-discord-git
pkgver=r233.651f323
pkgrel=1
pkgdesc='A new Discord client made in C++ and Qt'
url='https://github.com/EnyoYoen/Fast-Discord'
source=("${pkgname}::git+https://github.com/EnyoYoen/Fast-Discord")
arch=('i686' 'x86_64' 'aarch64')
license=('MIT')
depends=('qt5-multimedia' 'qt5-websockets' 'libsodium')
makedepends=('cmake' 'git')
sha256sums=('SKIP')

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

build () {
  cd "${pkgname}/bin"

  cmake ..
  cmake --build .
}

package() {
  cd "${pkgname}"
  
  install -Dm755 bin/Fast-Discord "${pkgdir}/usr/bin/fast-discord"
  install -Dm644 "resources/com.enyoyoen.fast-discord.desktop" "${pkgdir}/usr/share/applications/com.enyoyoen.fast-discord.desktop"
  install -Dm644 "doc/images/Fast-Discord-Logo.png" "${pkgdir}/usr/share/pixmaps/fast-discord.png"
  install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}