summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06a7ab709a5f1103a55e588db25811c8b112e4e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: dokutan <dokutan at tutanota dot com>
# Contributor: Esdras Tarsis <esdrastarsis@gmail.com>
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/
}