aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qt5-qtgamepad/APKBUILD
blob: f5b15f66a0feac0c6baa4233e3632fad9a52616c (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
# Contributor: Diaz Devera Victor <vitronic2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=qt5-qtgamepad
_realname=qtgamepad
pkgver=5.12.4
_qtver=5.12
pkgrel=0
pkgdesc="Adds support for getting events from gamepad devices"
url="https://doc.qt.io/qt-5/qtgamepad-index.html"
arch="all"
license="GPL-3.0-or-later"
depends="sdl2 qt5-qtbase qt5-qtdeclarative libevdev"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev libevdev eudev-dev"
subpackages="$pkgname-dev"
options="!check" #no testsuite
source="https://download.qt.io/official_releases/qt/$_qtver/$pkgver/submodules/$_realname-everywhere-src-$pkgver.tar.xz"
builddir="$srcdir/$_realname-everywhere-src-$pkgver"

prepare() {
	mkdir -p build
}

build() {
	cd "$builddir"/build
	qmake-qt5 ..
	make
}

package() {
	cd "$builddir"/build
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="e84e637e3b2ced01e92ceb2b54b829a1e2346a4c96b15044f59bcc9764a24c91df6fcd0165f454143cfad87c05471b7d84567d9c6ea8fd3b4c753e5e771e8947  qtgamepad-everywhere-src-5.12.4.tar.xz"