summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 236019cdf5785593f08a40c68943fe281a86ff8b (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
# Maintainer: xiretza <xiretza+aur@xiretza.xyz>
# Contributor: Christoph Brill <egore911@gmail.com>
_pkgname=evtest-qt
pkgname=${_pkgname}-git
pkgver=r133.6fb1b84
pkgrel=1
pkgdesc="Linux Joystick Tester for Qt"
arch=('i686' 'x86_64')
url="https://github.com/Grumbel/${_pkgname}"
license=('GPL3')
depends=('qt6-base' 'hicolor-icon-theme')
makedepends=('cmake' 'git' 'tinycmmc')
source=("git+${url}.git")
md5sums=('SKIP')
provides=("$_pkgname")
conflicts=("$_pkgname")

pkgver()  {
	printf "r%s.%s" "$(git -C ${_pkgname} rev-list --count HEAD)" "$(git -C ${_pkgname} rev-parse --short HEAD)"
}

build() {
	mkdir -p "$srcdir/${_pkgname}/build"
	cd "$srcdir/${_pkgname}/build"
	cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
        cd "$srcdir/${_pkgname}/build"
        make DESTDIR="$pkgdir/" install
}