1 # Contributor: Joyfulgirl <joyfulgirl (at) archlinux.us>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
7 pkgdesc="Emacs MultiMedia System -- git version"
9 url="http://www.gnu.org/software/emms/"
11 depends=('emacs' 'taglib' 'emacs-w3m-cvs')
12 optdepends=('vorbis-tools: ogg support'
14 'mp3info: mp3 tag support'
16 'mplayer: mplayer support'
26 _gitroot="git://git.savannah.gnu.org/emms.git"
29 msg "Connecting to ${_gitroot}..."
31 if [ -d ${srcdir}/${_gitname} ]; then
32 cd ${srcdir}/${_gitname} && git pull origin master
33 msg "Update complete!"
39 [ -d ${srcdir}/${_gitname}-build ] && rm -rf ${srcdir}/${_gitname}-build
40 git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
41 msg "GIT checkout done or server timeout."
42 msg "Starting make..."
44 cd ${srcdir}/${_gitname}-build
45 mv lisp/emms-setup.el lisp/emms-setup.e!
47 PREFIX=/usr make emms-print-metadata
48 mv lisp/emms-setup.e! lisp/emms-setup.el
52 cd ${srcdir}/${_gitname}-build
53 install -d ${pkgdir}/usr/share/{emacs/site-lisp/emms,man/man1,info}
54 install -m 644 -t ${pkgdir}/usr/share/emacs/site-lisp/emms lisp/*.el
55 install -m 644 -t ${pkgdir}/usr/share/emacs/site-lisp/emms lisp/*.elc
56 install -m 644 -t ${pkgdir}/usr/share/info doc/emms.info
57 install -m 644 -t ${pkgdir}/usr/share/man/man1 emms-print-metadata.1
58 install -Dm755 src/emms-print-metadata ${pkgdir}/usr/bin/emms-print-metadata