# Maintainer: Devin J. Pohly 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 }