summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: afb4e8997b87fef8873480dc9de89e29cd0ec548 (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
40
41
42
43
44
45
46
47
48
49
# Maintainer: Ben Wolsieffer <benwolsieffer@gmail.com>
pkgname=qdriverstation
pkgver=21.04
pkgrel=2
pkgdesc="Open source clone of the FRC Driver Station"
arch=('x86_64')
url="https://github.com/FRC-Utilities/QDriverStation"
license=('MIT')
depends=('sdl2' 'qt5-multimedia' 'qt5-quickcontrols' 'qt5-svg')
makedepends=('git')
provides=("${pkgname}")
conflicts=("${pkgname-git}")
source=(
	"git+https://github.com/FRC-Utilities/QDriverStation.git#tag=v${pkgver}"
	"git+https://github.com/alex-spataru/QJoysticks.git#commit=23931b8772616fec6f73f25bf9e0adf76174102e"
	"git+https://github.com/FRC-Utilities/LibDS.git#commit=14cac0a7f3b911b3f1c661c3b5f455522ae6638b"
)
sha256sums=('SKIP'
            'SKIP'
            'SKIP')

_extractdir="QDriverStation"

prepare() {
	cd "$srcdir/${_extractdir}"
	git submodule init
	git config submodule.lib/QJoysticks.url "$srcdir/QJoysticks"
	git config submodule.lib/LibDS.url "$srcdir/LibDS"
	git submodule update
}

build() {
	cd "$srcdir/${_extractdir}"
	qmake-qt5
	make
}

check() {
	cd "$srcdir/${_extractdir}"
	make -k check
}

package() {
	cd "$srcdir/${_extractdir}"
	make INSTALL_ROOT="$pkgdir/" install

	# Install MIT license
	install -D -m644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}