diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c09109ee3cbf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Phil Hoffmann <phil dot hoffmann at zoho dot eu> + +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" +} + |