Skip to content

Instantly share code, notes, and snippets.

@xordspar0
Created May 7, 2017 06:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xordspar0/86e1aeb4ae8ddedaaf44fa107a1501fd to your computer and use it in GitHub Desktop.
Save xordspar0/86e1aeb4ae8ddedaaf44fa107a1501fd to your computer and use it in GitHub Desktop.
blackwidowcontrol-git
# 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