diff options
author | Taner Tas <taner76@gmail.com> | 2018-12-02 02:59:30 +0300 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-27 20:51:32 +0000 |
commit | a4d7d06328f8af7cafd861fcb193f223ea16985d (patch) | |
tree | c66e5351653b9f251279a17b1ce0444f7f634cfe /testing/razercfg | |
parent | 5d004d13d3cfbb28cda2846e1c88900d5a8d1040 (diff) | |
download | aports-a4d7d06328f8af7cafd861fcb193f223ea16985d.tar.bz2 aports-a4d7d06328f8af7cafd861fcb193f223ea16985d.tar.xz |
testing/razercfg: new aport
https://bues.ch/cms/hacking/razercfg.html
Razer mouse configuration tool.
Closes GH-5745
Diffstat (limited to 'testing/razercfg')
-rw-r--r-- | testing/razercfg/APKBUILD | 39 | ||||
-rw-r--r-- | testing/razercfg/razerd.initd | 12 |
2 files changed, 51 insertions, 0 deletions
diff --git a/testing/razercfg/APKBUILD b/testing/razercfg/APKBUILD new file mode 100644 index 0000000000..e1cf13beaf --- /dev/null +++ b/testing/razercfg/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Taner Tas <taner76@gmail.com> +# Maintainer: Taner Tas <taner76@gmail.com> +pkgname=razercfg +pkgver=0.40 +pkgrel=0 +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 + " +subpackages="$pkgname-openrc $pkgname-gui::noarch" +source="https://github.com/mbuesch/razer/archive/$pkgname-$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 +} + +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="6757d05cf75709a2af4337d21a68042538ca145a509299442553acf54994434a60ad62f98267afa8d26bfcd15f1f2e34100e887ace0fd41cd4657f354c6b5367 razercfg-0.40.tar.gz +1b13752471cc5860dbcafc416f0b9a2a6ef6abb7bb8df68e6acd0cddb4184d194f8b2adf5f163cd8580e2f65bab5baf632ea214558a635ddb67f1f2b8dc2d9f0 razerd.initd" diff --git a/testing/razercfg/razerd.initd b/testing/razercfg/razerd.initd new file mode 100644 index 0000000000..dead8ca442 --- /dev/null +++ b/testing/razercfg/razerd.initd @@ -0,0 +1,12 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +pidfile="/run/razerd.pid" +command="/usr/bin/razerd" +command_args="-P $pidfile" +command_background="yes" + +depend() { + use logger +} |