# Maintainer: dokutan # Contributor: Esdras Tarsis pkgname=mouse_m908 pkgver=3.4 pkgrel=1 pkgdesc="Control Redragon gaming mice from Linux, BSD and Haiku" arch=(x86_64) url="https://github.com/dokutan/$pkgname" license=('GPL3') source=("https://github.com/dokutan/$pkgname/archive/v$pkgver.tar.gz") sha256sums=('34163c9f60897d067fe1943e946224e108d4c2483b5dfb1697072e05f4a72f26') depends=('libusb' 'gcc-libs') makedepends=(make) provides=($pkgname) build() { cd "$pkgname-$pkgver" make } package() { mkdir -p $pkgdir/usr/bin \ $pkgdir/usr/share/doc \ $pkgdir/usr/share/man/man1 \ $pkgdir/etc \ $pkgdir/usr/share/doc/mouse_m908 \ $pkgdir/etc/udev/rules.d cp ./$pkgname-$pkgver/mouse_m908 $pkgdir/usr/bin/mouse_m908 && \ cp ./$pkgname-$pkgver/mouse_m908.rules $pkgdir/etc/udev/rules.d && \ cp ./$pkgname-$pkgver/examples/* $pkgdir/usr/share/doc/mouse_m908/ && \ cp ./$pkgname-$pkgver/README.md $pkgdir/usr/share/doc/mouse_m908/ && \ cp ./$pkgname-$pkgver/keymap.md $pkgdir/usr/share/doc/mouse_m908/ && \ cp ./$pkgname-$pkgver/mouse_m908.1 $pkgdir/usr/share/man/man1/ }