summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d7d14077271cb12f52ff464c6e07fd8188336d4 (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: Devin J. Pohly <djpohly+arch@gmail.com>
pkgname=x11-touchscreen-calibrator-git
_basename=${pkgname%-git}
pkgver=0.2.r14.g1d3e955
pkgrel=4
pkgdesc="X Window System Touchscreen Calibrator"
arch=('i686' 'x86_64')
url="https://github.com/djpohly/x11-touchscreen-calibrator"
license=('GPL')
depends=('libxi' 'libxrandr' 'libxfixes')
makedepends=('git')
provides=('x11-touchscreen-calibrator')
source=("git+https://github.com/djpohly/$_basename.git")
sha256sums=('SKIP')

pkgver() {
	cd "$_basename"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$_basename"
	autoreconf -if
	./configure --prefix=/usr --sysconfdir=/etc
	make
}

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