summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 264569f5fd1cf6b98f69cdc390b91b716ba7a587 (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: Randoragon <randoragongamedev@gmail.com>

pkgname=mousemode-git
pkgver=1.0.r26.d28ca67
pkgrel=1
epoch=
pkgdesc="An intuitive, home-row mouse replacement"
arch=('x86_64' 'i686' 'pentium4')
url="https://github.com/randoragon/mousemode"
license=('MIT')
depends=(libx11 libxtst xorgproto)
makedepends=(git)
source=("git+$url")
md5sums=('SKIP')
provides=('mousemode')

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

build() {
	cd mousemode
	make
}

package() {
	cd mousemode
    mkdir -p "$pkgdir/usr/bin"
	make DESTDIR="$pkgdir/" PREFIX=/usr install
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/license.txt"
    install -Dm644 README.MD "$pkgdir/usr/share/doc/$pkgname/README.MD"
}