updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / ezbl-git / PKGBUILD
blob8f74356724f629c763ee4956678dbff36bb0a0e3
1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=ezbl-git
3 pkgver=20110415
4 pkgrel=1
5 pkgdesc="Emacs interface for Uzbl"
6 arch=('any')
7 url=("https://github.com/haxney/ezbl")
8 license=('GPL3')
9 depends=('uzbl-core' 'emacs-xwidget')
10 makedepends=('git')
12 _gitroot="https://github.com/itsmyowninvention/ezbl.git"
13 _gitname="ezbl"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
25   
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   [ -d "$srcdir/$_gitname-build" ] && rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
32   emacs -batch -q -f batch-byte-compile ezbl.el
35 package() {
36   cd "$srcdir/$_gitname-build"
37   install -Dm644 ezbl.elc $pkgdir/usr/share/emacs/site-lisp/ezbl.elc
38   install -Dm644 ezbl.el $pkgdir/usr/share/emacs/site-lisp/ezbl.el
39   install -d $pkgdir/usr/share/doc/ezbl
40   install *.org $pkgdir/usr/share/doc/ezbl