aboutsummaryrefslogtreecommitdiffstats
path: root/testing/razercfg/APKBUILD
blob: 6f619518742cd480615b060fc65499226769d81e (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
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=razercfg
pkgver=0.41
pkgrel=1
pkgdesc="Razer mouse configuration tool."
url="https://bues.ch/cms/hacking/razercfg.html"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	cmake
	libusb-dev
	python3
	eudev-dev
	"
subpackages="$pkgname-openrc $pkgname-gui::noarch"
source="https://github.com/mbuesch/razer/archive/razercfg-$pkgver.tar.gz
	razerd.initd
	"
options="!check" # No test suite
builddir="$srcdir/razer-$pkgname-$pkgver"

build() {
	cmake . \
		-DCMAKE_INSTALL_PREFIX=/usr
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm0755 "$srcdir"/razerd.initd "$pkgdir"/etc/init.d/razerd

	# Systemd
	rm -rf "$pkgdir"/usr/lib/tmpfiles.d
}

gui() {
	pkgdesc="Graphical user interface for razercfg."
	depends="$pkgname py3-qt5"
	mkdir -p "$subpkgdir/usr/bin"
	mv "$pkgdir"/usr/share "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin/qrazercfg* "$subpkgdir"/usr/bin/
}
sha512sums="8ef8489bcd1f9617c0862cd8482eb1ccdcb4c748f2f32a1fcd6995e24d34f6032b30aade5eec1617f2ab44f8fa385198a427db32fa6b5faf6c116ee3d1db4be5  razercfg-0.41.tar.gz
1b13752471cc5860dbcafc416f0b9a2a6ef6abb7bb8df68e6acd0cddb4184d194f8b2adf5f163cd8580e2f65bab5baf632ea214558a635ddb67f1f2b8dc2d9f0  razerd.initd"