summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD50
-rw-r--r--emms.install25
3 files changed, 101 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f2b504266d5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = emms-git
+ pkgdesc = Emacs MultiMedia System -- git version
+ pkgver = 20150519
+ pkgrel = 1
+ url = http://www.gnu.org/software/emms/
+ install = emms.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = texinfo
+ depends = emacs
+ depends = taglib
+ optdepends = vorbis-tools: ogg support
+ optdepends = mpg123: mp3 support
+ optdepends = mp3info: mp3 tag support
+ optdepends = mpd: mpd support
+ optdepends = mplayer: mplayer support
+ optdepends = xine: xine support
+ provides = emms
+ conflicts = emms
+ source = git://git.sv.gnu.org/emms.git
+ md5sums = SKIP
+
+pkgname = emms-git
+
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
+}
diff --git a/emms.install b/emms.install
new file mode 100644
index 00000000000..6ec5bf9413a
--- /dev/null
+++ b/emms.install
@@ -0,0 +1,25 @@
+pre_install() {
+ cat << EOM
+# The package needs a directory ~/.emacs.d/emms at build time
+# and claims to save the history file in there. If you do not
+# trust, make a copy of that directory elsewhere.
+EOM
+}
+
+pre_update() {
+ pre_install
+}
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ install-info /usr/share/info/emms.info.gz /usr/share/info/dir
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ install-info --delete /usr/share/info/emms.info.gz /usr/share/info/dir
+}