From d172c90a032220548f3fb743df40d9e3940338c1 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Sat, 1 Sep 2012 22:20:07 +1000 Subject: [PATCH] pkgbuild --- PKGBUILD-git | 42 ++++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 PKGBUILD-git diff --git a/PKGBUILD-git b/PKGBUILD-git new file mode 100644 index 0000000..ddb02ad --- /dev/null +++ b/PKGBUILD-git @@ -0,0 +1,42 @@ +# Contributor: Sean Pringle + +pkgname=xoat-git +pkgver=20120901 +pkgrel=1 +pkgdesc="X11 Obstinate Asymmetric Tiler" +arch=('i686' 'x86_64') +url="http://github.com/seanpringle/xoat" +license=('MIT') +depends=('libx11') +makedepends=('git') +provides=('xoat') +conflicts=('xoat') + +_gitroot="git://github.com/seanpringle/xoat.git" +_gitname="xoat" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot --depth=1 + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$_gitname-build" + cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + make +} + +package() { + cd "$srcdir/$_gitname-build" + install -Dm 755 $_gitname "$pkgdir/usr/bin/$_gitname" +} \ No newline at end of file diff --git a/README.md b/README.md index c4e83b6..06e371d 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,6 @@ xoat * Keyboard controls generally preferred over the mouse, when practical. * Faster. Muscle memory. * Click-to-focus model preferred over focus-follows-mouse. - * FfM means keeping track of the mouse or warping the pointer around. + * FfM means mentally keeping track of the mouse or warping the pointer around. * CtF is harder to get wrong and makes it easy to forget about the mouse for some tasks. * 2/3 is a nice fraction.