blob: 872b3c4d6ad54753f5103254fb79a8bc9758292a (
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
|
pkgname=m8mouse-git
pkgver=1.0.r3.g3b5d0d4
pkgrel=1
pkgdesc="A RGB and DPI controller for m8mouse"
arch=('x86_64')
url="https://github.com/nikopoto/m8mouse"
license=('MIT')
depends=('hidapi')
makedepends=('git' 'cmake' 'pkgconf' 'gcc' 'make')
provides=('m8mouse')
conflicts=('m8mouse')
source=("git+https://github.com/nikopoto/m8mouse.git")
md5sums=('SKIP')
install="$pkgname.install"
pkgver() {
cd "$srcdir/m8mouse"
echo "1.0.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/m8mouse"
cmake -S . -B build \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
cd "$srcdir/m8mouse"
DESTDIR="$pkgdir" cmake --install build
install -Dm644 90-m8mouse.rules "$pkgdir/etc/udev/rules.d/90-m8mouse.rules"
}
|