Created
May 7, 2017 06:41
-
-
Save xordspar0/86e1aeb4ae8ddedaaf44fa107a1501fd to your computer and use it in GitHub Desktop.
blackwidowcontrol-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Martchus <martchus@gmx.net> | |
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where | |
# you also find the URL of a binary repository. | |
pkgname=blackwidowcontrol | |
pkgver=r10.e793f18 | |
pkgrel=1 | |
pkgdesc='Python script to enable macro keys of the Razer BlackWidow keyboard under GNU/Linux' | |
arch=('any') | |
license=('GPL') | |
depends=('python-pyusb') | |
source=("git+https://github.com/Martchus/${pkgname}.git") | |
sha256sums=('SKIP') | |
pkgver() { | |
cd "${srcdir}/${pkgname}" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
package() { | |
_srcdir="${srcdir}/${pkgname}" | |
install -Dm755 "${_srcdir}/blackwidowcontrol.py" "${pkgdir}/usr/bin/blackwidowcontrol" | |
install -Dm644 "${_srcdir}/razer_blackwidow.rules" "${pkgdir}/etc/udev/rules.d/70-razer_blackwidow.rules" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment