# Maintainer: Phil Hoffmann pkgname=gm-companion pkgver=1.0.0.0 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', 'taglib') makedepends=('gendesk') conflicts=('gm-companion-git') source=("https://github.com/PhilInTheGaps/GM-Companion/archive/${pkgver}.tar.gz" "https://raw.githubusercontent.com/PhilInTheGaps/GM-Companion/ubuntu-build/data/share/gm-companion/icon256.png") md5sums=('f9c277a3814391ab2fd8b0e4648454d7' '877a226689a5edaee3ecfdaf767ded9d') prepare() { gendesk -n -f --name='GM-Companion' --pkgname "$pkgname" --pkgdesc "$pkgdesc" } build() { cd "${srcdir}/GM-Companion-${pkgver}" qmake make PREFIX=/usr } package() { # Install main binary cd "${srcdir}/GM-Companion-${pkgver}" 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" }