blob: e970dccf893814e116d710de421055d7d757ca5a (
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
|
# Maintainer : MorsMortium <morsmortium@disroot.org>
_pkgname=quatter
pkgname=${_pkgname}-git
pkgver=r156.85330f0
pkgrel=1
pkgdesc='A digital version of the Quarto boardgame by Blaise Müller, made using the Dry game engine and other open source software.'
arch=('x86_64')
url="https://gitlab.com/luckeyproductions/games/${_pkgname}"
license=('GPL-2.0-or-later' 'CC0-1.0' 'CC-BY-4.0' 'CC-BY-SA-4.0')
depends=('dry' 'hicolor-icon-theme')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
makedepends=('git' 'qt5-base')
sha512sums=('SKIP')
source=("${pkgname}::git+${url}.git")
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
DRY_HOME=/opt/dry qmake Quatter.pro "DATADIR=/usr/share"
make
}
package() {
cd "${srcdir}/${pkgname}"
install -Dm 644 ${_pkgname}.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg
install -Dm 755 ${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
install -Dm 755 ${_pkgname}.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop
mkdir -p ${pkgdir}/usr/share/luckey/${_pkgname}
cp -R "${srcdir}/${pkgname}/Resources/." ${pkgdir}/usr/share/luckey/${_pkgname}/
}
|