summaryrefslogtreecommitdiff
path: root/extra/cmus/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/cmus/PKGBUILD')
-rw-r--r--extra/cmus/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/extra/cmus/PKGBUILD b/extra/cmus/PKGBUILD
new file mode 100644
index 000000000..b58abb66d
--- /dev/null
+++ b/extra/cmus/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 111610 2011-02-27 20:41:37Z eric $
+# Maintainer: Aaron Griffin <aaron@archlinux.org>
+# Contributor: dorphell <dorphell@archlinux.org>
+
+pkgname=cmus
+pkgver=2.3.4
+pkgrel=2
+pkgdesc="A very feature-rich ncurses-based music player"
+arch=('i686' 'x86_64')
+url="http://cmus.sourceforge.net/"
+license=('GPL')
+depends=('ncurses')
+makedepends=('libao' 'libmpcdec' 'ffmpeg' 'flac' 'libmad' 'faad2' 'libmodplug' 'libvorbis' 'libpulse' 'wavpack')
+optdepends=('alsa-lib: for ALSA output plugin support'
+ 'libao: for AO output plugin support'
+ 'libpulse: for PulseAudio output plugin support'
+ 'ffmpeg: for ffmpeg input plugin support'
+ 'libmodplug: for modplug input plugin support'
+ 'faad2: for input AAC plugin support'
+ 'libmad: for mp3 input plugin support'
+ 'libmpcdec: for musepack input plugin support'
+ 'wavpack: for wavpack input plugin support'
+ 'libvorbis: for vorbis input plugin support'
+ 'flac: for flac input plugin support')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-v$pkgver.tar.bz2")
+md5sums=('10629719fd0bff2d3c322ac24834af35')
+sha1sums=('d980781c47937da6c3faf910043967e28b9450d6')
+
+build() {
+ cd "$srcdir/$pkgname-v$pkgver"
+ sed -i 's|ffmpeg/avcodec.h|libavcodec/avcodec.h|' configure ffmpeg.c
+ sed -i 's|ffmpeg/avformat.h|libavformat/avformat.h|' ffmpeg.c
+ sed -i 's|ffmpeg/avio.h|libavformat/avio.h|' ffmpeg.c
+ ./configure prefix=/usr CONFIG_ARTS=n
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-v$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -D -m 644 contrib/_cmus "$pkgdir/usr/share/zsh/site-functions/_cmus"
+}