1 # Contributor: Alexander Tsamutali <astsmtl@yandex.ru>
3 pkgname=emacs-libmpdee-svn
6 pkgdesc="An Emacs Lisp client library for MPD."
8 url="http://mpd.wikia.com/wiki/Client:Libmpdee"
11 makedepends=('subversion')
12 provides=('emacs-libmpdee')
13 conflicts=('emacs-libmpdee')
15 _svntrunk="https://svn.musicpd.org/libmpdee/trunk"
21 if [ -d $_svnmod/.svn ]; then
22 (cd $_svnmod && svn up -r $pkgver)
24 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 msg "SVN checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_svnmod-build"
31 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
32 cd "$srcdir/$_svnmod-build"
34 emacs --batch -f batch-byte-compile *.el || return 1
36 install -d "$pkgdir/usr/share/emacs/site-lisp" || return 1
37 install -m 644 *.{el,elc} "$pkgdir/usr/share/emacs/site-lisp" || return 1