blob: 83df09800e046b17e1beacb097fda9efe88956bf (
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
|
# Maintainer: nikopoto <nikopoto.8@protonmail.com>
pkgname=m8mouse-git
pkgver=1.0
pkgrel=1
pkgdesc="A RGB and DPI controller for m8mouse"
arch=('x86_64')
url="https://github.com/thekhalifa/m8mouse"
license=('MIT')
depends=('hidapi')
makedepends=('cmake' 'git' 'make' 'gcc')
provides=('m8mouse')
conflicts=('m8mouse')
source=("git+https://github.com/thekhalifa/m8mouse.git")
sha256sums=('SKIP')
install="$pkgname.install"
build() {
cd "$srcdir/m8mouse"
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
cd "$srcdir/m8mouse"
install -Dm755 build/m8mouse "$pkgdir/usr/bin/m8mouse"
install -Dm644 90-m8mouse.rules "$pkgdir/usr/lib/udev/rules.d/90-m8mouse.rules"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|