summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a49f1fe61434922bf3237354b61a8394c3586bc0 (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
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=btnx-git
_pkgname=btnx
pkgver=r23.ef3f5b9
pkgrel=1
pkgdesc="A daemon that enables rerouting of mouse button events through uinput as keyboard and other mouse button combinations"
arch=('x86_64')
url='https://github.com/cdobrich/btnx'
license=('GPL2')
provides=('btnx')
depends=('btnx-config'
         'libdaemon'
         'bash')
makedepends=('git')
source=("btnx::git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd btnx
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd btnx
  ./configure --prefix=/usr
  make
}

package() {
  cd btnx
  make DESTDIR="${pkgdir}" install
}