blob: 488202dd12038027189a58023b0927c3442f5d05 (
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
36
37
38
39
40
41
42
43
44
|
# Maintainer: Martin Rys <rys.pw/#contact_me>
# Previous maintainer: Arda Demir <ardadem.dev@gmail.com>
pkgname=a4tech-bloody-driver-git
_pkgname=a4tech-bloody-driver
pkgver=r155.2beb8fe
pkgrel=1
pkgdesc='Linux driver for a4tech bloody mouse series.'
arch=('any')
url='https://gitlab.com/C0rn3j/a4tech_bloody_p85_driver'
license=('AGPL3')
makedepends=('git' 'cmake' 'qt5-base')
provides=('a4tech-bloody-driver')
conflicts=('a4tech-bloody-driver')
source=($pkgname::git+https://gitlab.com/C0rn3j/a4tech_bloody_p85_driver
'60-bloody.rules')
sha256sums=('SKIP'
'2ee35d38f86e6f39eb0093d09f75030e478146bc0a56bbdbb45822c77c0e9d18')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
cmake ./
make
cd qt
qmake bloody.pro -spec linux-g++ CONFIG+=qtquickcompiler
make
}
package() {
mkdir -p "${pkgdir}/usr/bin/"
mkdir -p "${pkgdir}/usr/lib/udev/rules.d/"
install -Dm755 "${srcdir}/${pkgname}/bloody-cli" "${pkgdir}/usr/bin/"
chmod +x "${pkgdir}/usr/bin/bloody-cli"
install -Dm755 "${srcdir}/${pkgname}/qt/bloody" "${pkgdir}/usr/bin/"
chmod +x "${pkgdir}/usr/bin/bloody"
install -Dm644 "${srcdir}/60-bloody.rules" "${pkgdir}/usr/lib/udev/rules.d/"
}
|