diff options
Diffstat (limited to 'community/cmus/PKGBUILD')
-rw-r--r-- | community/cmus/PKGBUILD | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/community/cmus/PKGBUILD b/community/cmus/PKGBUILD index eccd1eee4..5d54d3c79 100644 --- a/community/cmus/PKGBUILD +++ b/community/cmus/PKGBUILD @@ -1,18 +1,21 @@ -# $Id: PKGBUILD 94872 2013-08-01 06:54:46Z bpiotrowski $ -# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> +# $Id: PKGBUILD 97815 2013-09-30 02:36:29Z xyne $ +# Maintainer: Xyne <ca dot archlinux at xyne, backwards> +# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> # Contributor: Aaron Griffin <aaron@archlinux.org> # Contributor: dorphell <dorphell@archlinux.org> pkgname=cmus pkgver=2.5.0 -pkgrel=3 +pkgrel=4 pkgdesc='Very feature-rich ncurses-based music player' arch=('i686' 'x86_64') url="http://cmus.sourceforge.net/" license=('GPL') depends=('ncurses') -makedepends=('faad2' 'ffmpeg' 'flac' 'libao' 'libmad' 'libmodplug' - 'libmp4v2' 'libmpcdec' 'libpulse' 'libvorbis' 'opusfile' 'wavpack') +makedepends=( + 'faad2' 'ffmpeg' 'flac' 'libao' 'libmad' 'libmodplug' 'libcdio-paranoia' + 'libmp4v2' 'libmpcdec' 'libpulse' 'libvorbis' 'opusfile' 'wavpack' +) optdepends=('alsa-lib: for ALSA output plugin support' 'libao: for AO output plugin support' 'libpulse: for PulseAudio output plugin support' @@ -24,23 +27,32 @@ optdepends=('alsa-lib: for ALSA output plugin support' 'libmp4v2: for mp4 input plugin support' 'libmpcdec: for musepack input plugin support' 'libvorbis: for vorbis input plugin support' + 'libcdio-paranoia: for cdio support' 'opusfile: for opus input plugin support' 'wavpack: for wavpack input plugin support') source=(http://downloads.sourceforge.net/$pkgname/$pkgname-v$pkgver.tar.bz2 - cmus-2.5.0-opus-support.patch) + cmus-2.5.0-opus-support.patch + cdio-git.patch) sha1sums=('244975a5ff642567acb047f6bd518e4a3271c25b' - '5e524f54d565dfa30760562c223bc0e2e8ed00a0') + '5e524f54d565dfa30760562c223bc0e2e8ed00a0' + '77738acc7d4e71f6d396a5cd464dbbce0168b6b7') + +prepare() { + cd "$srcdir/$pkgname-v$pkgver" + # Inherited from Bart or earlier. + patch -Np1 -i "$srcdir/cmus-2.5.0-opus-support.patch" + # Include changes from git for compatibility with new cdio. + patch -N -i "$srcdir/cdio-git.patch" +} build() { - cd $srcdir/$pkgname-v$pkgver - patch -Np1 -i $srcdir/cmus-2.5.0-opus-support.patch + cd "$srcdir/$pkgname-v$pkgver" ./configure prefix=/usr make } package() { - cd $srcdir/$pkgname-v$pkgver - make DESTDIR=$pkgdir install - - install -Dm 644 contrib/_cmus $pkgdir/usr/share/zsh/site-functions/_cmus + cd "$srcdir/$pkgname-v$pkgver" + make DESTDIR="$pkgdir" install + install -Dm644 contrib/_cmus "$pkgdir"/usr/share/zsh/site-functions/_cmus } |