Advertisement
MikereDD

moc-svn PKGBUILD using autoreconf

May 5th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. pkgname=moc-svn
  2. pkgver=2425
  3. pkgrel=1
  4. pkgdesc='A ncurses console audio player with support for the mp3, ogg, and wave formats'
  5. url="http://moc.daper.net/"
  6. arch=('i686' 'x86_64')
  7. license=('GPL')
  8. depends=('libmad' 'libid3tag' 'jack' 'curl' 'libsamplerate' 'libtool')
  9. makedepends=('speex' 'ffmpeg' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'subversion' 'sidplay2')
  10. optdepends=('speex: for using the speex plugin'
  11. 'ffmpeg: for using the ffmpeg plugin'
  12. 'taglib: for using the musepack plugin'
  13. 'libmpcdec: for using the musepack plugin'
  14. 'wavpack: for using the wavpack plugin'
  15. 'libmodplug: for using the modplug plugin'
  16. 'sidplay2: for playing c64 sid files')
  17. conflicts=('moc')
  18. provides=('moc')
  19. options=('!libtool')
  20.  
  21. _svntrunk='svn://daper.net/moc/trunk'
  22. _svnmod='moc'
  23.  
  24. build() {
  25. if [ -d ${_svnmod} ]; then
  26. (cd ${_svnmod} && svn up -r ${pkgver})
  27. else
  28. svn co ${_svntrunk} -r ${pkgver} ${_svnmod}
  29. fi
  30.  
  31. msg 'SVN checkout done or server timeout'
  32. msg 'Starting make...'
  33.  
  34. cd ${_svnmod}
  35.  
  36. export CPPFLAGS="${CPPFLAGS} -I/usr/lib/oss/include"
  37.  
  38. # ./autogen.sh
  39. autoreconf -f -i -Wall,no-obsolete
  40.  
  41. ./configure \
  42. --prefix=/usr \
  43. --without-rcc \
  44. --without-aac \
  45. --with-oss \
  46. --with-alsa \
  47. --with-jack \
  48. --with-mp3 \
  49. --with-sidplay2 \
  50. --with-musepack \
  51. --with-vorbis \
  52. --with-flac \
  53. --with-wavpack \
  54. --with-sndfile \
  55. --with-modplug \
  56. --with-ffmpeg \
  57. --with-speex \
  58. --with-samplerate \
  59. --with-curl \
  60. --disable-debug
  61.  
  62. make
  63. }
  64.  
  65. package() {
  66. cd ${_svnmod}
  67.  
  68. make DESTDIR=${pkgdir} install
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement