summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4265f7956fa54bb9041e25e338bb416697938409 (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
# Maintainer: sinkuu <sinkuupump@gmail.com>

pkgname='xrestrict-git'
_gitname='xrestrict'
pkgver='r52.7729d84'
pkgrel=1
pkgdesc='A utility to modify the "Coordinate Transformation Matrix" of an XInput2 pointer device.'
arch=('i686' 'x86_64')
url='https://github.com/Ademan/xrestrict'
license=('MIT')
depends=('libx11' 'libxi' 'libxrandr')
makedepends=('autoconf' 'automake')
source=("git+https://github.com/Ademan/$_gitname.git")
sha256sums=('SKIP')

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

build() {
    cd "${srcdir}/${_gitname}"
    autoreconf -i
    ./configure
    make
}

package() {
    cd "${srcdir}/${_gitname}"
    make DESTDIR="${pkgdir}" install
}