[ create a new paste ] login | about

Link: http://codepad.org/Dh8jBmX6    [ raw code | fork ]

Plain Text, pasted on Jul 7:
# Maintainer: Army

# configuration

_CDDB=n        # libcddb CDDA identification
_CDIO=n        # libcdio CDDA input
_DISCID=n      # libdiscid CDDA identification
_FLAC=y        # Free Lossless Audio Codec (.flac, .fla)
_MAD=y         # MPEG Audio Decoder (.mp3, .mp2, streams)
_MODPLUG=n     # libmodplug (.mod, .x3m, ...)
_MIKMOD=n      # libmikmod (.mod, .x3m, ...)
_MPC=y         # libmpcdec (Musepack .mpc, .mpp, .mp+)
_VORBIS=y      # Ogg/Vorbis (.ogg, application/ogg, audio/x-ogg)
_TREMOR=n      # Use Tremor as Ogg/Vorbis input plugin
_OPUS=y        # Opus (.opus)
_WAV=y         # WAV
_WAVPACK=y     # WavPack (.wv, audio/x-wavpack)
_MP4=y         # MPEG-4 AAC (.mp4, .m4a, .m4b)
_AAC=y         # AAC (.aac, audio/aac, audio/aacp)
_FFMPEG=y      # FFMPEG (.shn, .wma)
_CUE=n         # CUE sheets (.cue)
_ROAR=n        # native RoarAudio output
_PULSE=n       # native PulseAudio output
_ALSA=y        # ALSA
_AO=n          # Libao cross-platform audio library
_OSS=n         # Open Sound System
_WAVEOUT=n     # Windows Wave Out
_FALLBACK_IP=n # Use a specific IP for every unrecognized

_pkgname=cmus
pkgname=$_pkgname-git
pkgver=20130610.1538
pkgrel=1
pkgdesc="a small, fast and powerful console music player for Unix-like operating systems"
arch=('i686' 'x86_64')
url="http://cmus.sourceforge.net"
license=('GPL2')
#depends=('libmpcdec' 'ffmpeg' 'flac' 'libmad' 'faad2' 'libmp4v2')
depends=('bash')
if [ $_CDDB == y ];then depends+=('libcddb');fi
if [ $_CDIO == y ];then depends+=('libcdio');fi
if [ $_DISCID == y ];then depends+=('cd-discid');fi
if [ $_FLAC == y ];then depends+=('flac');fi
if [ $_MAD == y ];then depends+=('libmad');fi
if [ $_MODPLUG == y ];then depends+=('libmodplug');fi
if [ $_MIKMOD == y ];then depends+=('libmikmod');fi
if [ $_MPC == y ];then depends+=('libmpcdec');fi
if [ $_VORBIS == y ];then depends+=('libvorbis');fi
if [ $_OPUS == y ];then depends+=('opusfile');fi
if [ $_TREMOR == y ];then depends+=('libtremor');fi
if [ $_WAVPACK == y ];then depends+=('wavpack');fi
if [ $_MP4 == y ];then depends+=('libmp4v2');fi
if [ $_AAC == y ];then depends+=('faad2');fi
if [ $_FFMPEG == y ];then depends+=('ffmpeg');fi
if [ $_CUE == y ];then depends+=('libcue');fi
if [ $_ROAR == y ];then depends+=('libroar');fi
if [ $_PULSE == y ];then depends+=('libpulse');fi
if [ $_AO == y ];then depends+=('libao');fi
if [ $_OSS == y ];then depends+=('oss');fi
makedepends=('git')
optdepends=('python2: for cmus-updatepidgin.py')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+https://github.com/cmus/cmus.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  echo "$(git log -1 --format="%cd" --date=short | sed 's|-||g').$(git rev-list --count master)"
}

prepare() {
  cd "$srcdir/$_pkgname/contrib"
  sed 's#python#python2#g' -i cmus-updatepidgin.py
}

build() {
  cd "$srcdir/$_pkgname"
  ./configure \
    prefix=/usr \
    CONFIG_CDDB=$_CDDB \
    CONFIG_CDIO=$_CDIO \
    CONFIG_DISCID=$_DISCID \
    CONFIG_FLAC=$_FLAC \
    CONFIG_MAD=$_MAD \
    CONFIG_MODPLUG=$_MODPLUG \
    CONFIG_MIKMOD=$_MIKMOD \
    CONFIG_MPC=$_MPC \
    CONFIG_VORBIS=$_VORBIS \
    CONFIG_TREMOR=$_TREMOR \
    CONFIG_WAV=$_WAV \
    CONFIG_WAVPACK=$_WAVPACK \
    CONFIG_MP4=$_MP4 \
    CONFIG_AAC=$_AAC \
    CONFIG_FFMPEG=$_FFMPEG \
    CONFIG_CUE=$_CUE \
    CONFIG_ROAR=$_ROAR \
    CONFIG_PULSE=$_PULSE \
    CONFIG_ALSA=$_ALSA \
    CONFIG_AO=$_AO \
    CONFIG_ARTS=n \
    CONFIG_OSS=$_OSS \
    CONFIG_SUN=n \
    CONFIG_WAVEOUT=$_WAVEOUR \
    USE_FALLBACK_IP=$_FALLBACK_IP
  make
}

package() {
  cd "$srcdir/$_pkgname"
  make DESTDIR="$pkgdir/" install

  install -Dm644 "contrib/_cmus" "$pkgdir/usr/share/zsh/functions/Completion/Unix/_cmus"
  install -Dm644 "contrib/cmus-updatepidgin.py" "$pkgdir/usr/share/doc/$_pkgname/examples/cmus-updatepidgin.py"
}

# vim:set ts=2 sw=2 et:



Create a new paste based on this one


Comments: