Skip to content

Instantly share code, notes, and snippets.

Created May 31, 2013 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5687888 to your computer and use it in GitHub Desktop.
Save anonymous/5687888 to your computer and use it in GitHub Desktop.
New PKGBUILD for keyfuzz (/usr move && add logitech_media_keyboard_600.keyfuzz in package)
# Contributer: N30N <archlinux@alunamation.com>
# Contributer: Aerion <this.id.was.still.free@aerion.co.uk>
# Contributer: teekay <gimpel@sonnenkinder.org>
pkgname=keyfuzz
pkgver=0.2
pkgrel=7
pkgdesc="A Utility for manipulating the scancode/keycode translation tables of keyboard drivers"
url="http://0pointer.de/lennart/projects/keyfuzz/"
license="GPL2"
arch=("i686" "x86_64")
depends=()
makedepends=("lynx")
source=("${url}${pkgname}-${pkgver}.tar.gz"
"${pkgname}.systemd"
"logitech_media_keyboard_600.keyfuzz"
"support_by_id.patch"
)
md5sums=('dffcc16ffd68988fafe7365f1124517d'
'0c543cc90d9918794f4376174b1dcbe3'
'3cf549f08569db59aaf14a244921f6f8'
'3f8cfa3812d5ed44b6190d43e157dce1')
build() {
cd "${pkgname}-${pkgver}"
patch -p0 < $srcdir/support_by_id.patch
./configure --prefix=/usr --with-initdir=/usr/lib/systemd/scripts --sysconfdir=/etc --sbindir=/usr/bin
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m644 ${srcdir}/keyfuzz.systemd "${pkgdir}/usr/lib/systemd/system/keyfuzz.service"
install -D -m644 ${srcdir}/logitech_media_keyboard_600.keyfuzz "${pkgdir}/etc/keyfuzz/logitech_media_keyboard_600.keyfuzz"
}
# vim: set noet ff=unix:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment