34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
|
# Maintainer: Esdras Tarsis <esdrastarsis@gmail.com>
|
||
|
pkgname=mouse_m908
|
||
|
pkgver=3.1
|
||
|
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=('a4718af69fdbc26978e01b7a0d57227a2d92365ebd3726ff99f6a078f8aa50a0')
|
||
|
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/
|
||
|
}
|