blob: 1a03e558916c5e5a8c5f9ea66e7b8548f3de8e29 (
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 : MorsMortium <morsmortium@disroot.org>
_pkgname=opensaucer
pkgname=${_pkgname}-git
pkgver=r285.c9b4ba6
pkgrel=1
pkgdesc='Vehicular soccer'
arch=('x86_64')
url="https://gitlab.com/luckeyproductions/games/${_pkgname}"
license=('GPL-2.0-or-later')
depends=('dry' 'sfml' 'qt5-base' 'hicolor-icon-theme')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
makedepends=('git')
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 OpenSaucer.pro "DATADIR=/usr/share"
make
qmake OpenEncounter.pro
make
}
package() {
cd "${srcdir}/${pkgname}"
install -Dm 644 saucer.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/saucer.svg
install -Dm 755 saucer ${pkgdir}/usr/bin/saucer
install -Dm 755 saucer-launcher ${pkgdir}/usr/bin/saucer-launcher
install -Dm 755 saucer.desktop ${pkgdir}/usr/share/applications/saucer.desktop
mkdir -p ${pkgdir}/usr/share/luckey/saucer
cp -R "${srcdir}/${pkgname}/Resources/." ${pkgdir}/usr/share/luckey/saucer/
}
|