1 # Contributor: Alexander Tsamutali <astsmtl@yandex.ru>
3 pkgname=emacs-mingus-git
6 pkgdesc="A frontend for GNU Emacs to the Music Player daemon."
8 url="http://github.com/pft/mingus"
12 provides=('emacs-mingus')
13 conflicts=('emacs-mingus' 'emacs-libmpdee')
14 install=emacs-mingus-git.install
16 _gitroot="git://github.com/pft/mingus.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
37 for file in libmpdee.el mingus.el
38 # FIXME: mingus-stays-home.el should be byte-compiled too.
40 emacs --batch -f batch-byte-compile $file || return 1
43 install -d "$pkgdir/usr/share/emacs/site-lisp/" || return 1
44 for file in *.{el,elc}
46 install -v -m 644 $file "$pkgdir/usr/share/emacs/site-lisp/" || return 1