summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8b677003b5c9370707fa7e545a1d41833f937ed (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
# Maintainer: Phil Hoffmann <phil dot hoffmann at zoho dot eu>

pkgname=gm-companion
pkgver=1.0.2
pkgrel=1
pkgdesc="A tool for rpg gamemasters."
url="https://gm-companion.github.io/"
arch=('x86_64' 'i686')
license=('GPL3')
depends=('qt5-declarative>=5.10.0', 'qt5-multimedia>=5.10.0', 'qt5-networkauth>=5.10.0', 'qt5-quickcontrols2>=5.10.0', 'qt5-webengine>=5.10.0', 'taglib')
makedepends=('gendesk')
conflicts=('gm-companion-git')
source=("https://github.com/PhilInTheGaps/GM-Companion/releases/download/${pkgver}/source_with_submodules.tar.xz" "https://raw.githubusercontent.com/PhilInTheGaps/GM-Companion/ubuntu-build/data/share/gm-companion/icon256.png")
md5sums=('997a148d44e2d48dc818eb549d3cdfbf'
         '877a226689a5edaee3ecfdaf767ded9d')

prepare() {
  gendesk -n -f --name='GM-Companion' --pkgname "$pkgname" --pkgdesc "$pkgdesc"
}

build() {
  cd "${srcdir}"
  qmake
  make PREFIX=/usr
  
}

package() {
  # Install main binary
  cd "${srcdir}"
  make INSTALL_ROOT="$pkgdir" install 
  
  # Desktop Entry
  install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  
  # Icon
  install -Dm644 "$srcdir/icon256.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}