summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dc406952c2f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Contributor: Joyfulgirl <joyfulgirl (at) archlinux.us>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+
+pkgname=emms-git
+pkgver=20150519
+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')
+install=emms.install
+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
+}