summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dad8ffa9059f2528d880b2bf111f31e07a7aa3ab (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
# 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=r17.15e03c75
pkgrel=1
pkgdesc='Linux driver for a4tech bloody mouse series.'
arch=('any')
url='https://gitlab.com/C0rn3j/a4tech_bloody_p85_driver'
license=('unknown')
makedepends=('git' 'cmake')
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')

build() {
  cd "${srcdir}/${pkgname}"

  cmake ./
  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 -Dm644 "${srcdir}/60-bloody.rules" "${pkgdir}/usr/lib/udev/rules.d/"
}