35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Maintainer: dokutan <dokutan at tutanota dot com>
|
|
# Contributor: Esdras Tarsis <esdrastarsis@gmail.com>
|
|
pkgname=mouse_m908
|
|
pkgver=3.3
|
|
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=('bf8bd7b13fb095fd2e789476ff29c4f1f7139f8db90b6d182fc81fd00cb74f6e')
|
|
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/
|
|
}
|