summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8aa51273fc40f26bd4d518d550e4e8c21db05c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Joyfulgirl <joyfulgirl (at) archlinux.us>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emms-git
pkgver=20161220
pkgrel=1
pkgdesc="Emacs MultiMedia System -- git version"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/emms/"
makedepends=('git' 'texinfo')
depends=('emacs' 'taglib')
optdepends=('vorbis-tools: ogg support' 
            'mpg123: mp3 support' 
            'mp3info: mp3 tag support'
            'mpd: mpd support'
            'mplayer: mplayer support'
            'xine: xine support')
license=('GPL')
conflicts=('emms')
provides=('emms')
source=('git://git.sv.gnu.org/emms.git')
md5sums=('SKIP')
_gitname="emms"

pkgver() {
  cd "$srcdir"/$_gitname
  echo $(git log -1 --format="%cd" --date=short | sed 's|-||g')
}

prepare() {
  cd "$srcdir"/$_gitname/lisp
  sed -i '5s+$+ emms-setup.el+' Makefile
}
  
build() {
    cd ${srcdir}/${_gitname} 
    PREFIX=/usr make
    PREFIX=/usr make emms-print-metadata 
}

package() {
  cd ${srcdir}/${_gitname}
  install -d ${pkgdir}/usr/share/{emacs/site-lisp/emms,man/man1,info}
  install -m 644 -t ${pkgdir}/usr/share/emacs/site-lisp/emms lisp/*.el
  install -m 644 -t ${pkgdir}/usr/share/emacs/site-lisp/emms lisp/*.elc
  install -m 644 -t ${pkgdir}/usr/share/info doc/emms.info 
  install -m 644 -t ${pkgdir}/usr/share/man/man1 emms-print-metadata.1 
  install -Dm755 src/emms-print-metadata ${pkgdir}/usr/bin/emms-print-metadata
}