Skip to content

Commit

Permalink
added alarm/xinput_calibrator
Browse files Browse the repository at this point in the history
  • Loading branch information
kmihelich committed Jan 19, 2015
1 parent def5e11 commit 624e494
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions alarm/xinput_calibrator/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
# Contributor: Alexander Werner <bundeswerner@googlemail.com>

pkgname=xinput_calibrator
pkgver=0.7.5.r88.g03dadf5
pkgrel=1
pkgdesc="A generic touchscreen calibration program for X.Org"
arch=('i686' 'x86_64')
url="http://www.freedesktop.org/wiki/Software/xinput_calibrator"
license=('MIT')
depends=('libx11' 'libxi' 'libxext' 'libxfixes')
makedepends=('git')
source=("git+https://github.com/tias/xinput_calibrator.git")
md5sums=('SKIP')

pkgver() {
cd ${pkgname}
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
cd ${pkgname}

./autogen.sh --prefix=/usr
make
}

package() {
cd ${pkgname}

make DESTDIR="${pkgdir}" install
install -m755 scripts/xinput_calibrator{_get_hal_calibration.sh,_pointercal.sh} "${pkgdir}/usr/bin/"
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

0 comments on commit 624e494

Please sign in to comment.