Advertisement
Guest User

Untitled

a guest
Nov 1st, 2012
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.46 KB | None | 0 0
  1. # $Id$
  2. # Maintainer: Eric Bélanger <eric@archlinux.org>
  3. # Contributer: graysky <graysky AT archlinux DOT us>
  4. pkgname=('quodlibet' 'quodlibet-libs' 'exfalso')
  5. pkgbase=quodlibet
  6. pkgver=2.4.1
  7. pkgrel=2
  8. arch=('i686' 'x86_64')
  9. url="http://code.google.com/p/quodlibet/"
  10. license=('GPL2')
  11. makedepends=('intltool')
  12. options=('!makeflags')
  13. source=(http://quodlibet.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
  14. sha1sums=('4db812f0b447805a27ae8f25517623205712b75e')
  15.  
  16. build() {
  17.     cd "${srcdir}/${pkgbase}-${pkgver}"
  18.     sed -i 's#env python#env python2#' *.py quodlibet/util/fmps.py
  19.     sed -i 's#libudev.so.0#libudev.so.1#' quodlibet/devices/__init__.py
  20.     ./setup.py build
  21. }
  22.  
  23. package_quodlibet-libs() {
  24.         pkgdesc="Quod Libet/Exfalso shared libs."
  25.     cd "${srcdir}/${pkgbase}-${pkgver}"
  26.     ./setup.py install --prefix="${pkgdir}/usr"
  27.  
  28.     # keep only shared files
  29.     rm -rf "${pkgdir}"/usr/bin
  30.     rm -rf "${pkgdir}"/usr/share/{applications,man,pixmaps}
  31. }
  32.  
  33. package_quodlibet() {
  34.         pkgdesc="An audio player written in pygtk."
  35.     depends=('gstreamer0.10-python' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins'
  36.     'gstreamer0.10-ugly-plugins' 'mutagen' 'pygtk' 'quodlibet-libs')
  37.     optdepends=('gstreamer0.10-ffmpeg: for ffmpeg (ASF/WMA) support '
  38.     'gstreamer0.10-bad-plugins: for MPEG-4 (AAC) and Musepack support'
  39.     'python2-dbus: for dbus support'
  40.     'notification-daemon: for notification support'
  41.     'libgpod: for ipod support'
  42.     'python2-feedparser: for audio feeds (podcast) support'
  43.     'udisks: for media devices support'
  44.     'media-player-info: for media devices support')
  45.  
  46.     cd "${srcdir}/${pkgbase}-${pkgver}"
  47.     ./setup.py install --prefix="${pkgdir}/usr"
  48.     install -D -m644 quodlibet/images/hicolor/64x64/apps/quodlibet.png "${pkgdir}/usr/share/pixmaps/quodlibet.png"
  49.  
  50.     # purge shared libs since quodlibet-libs provides them
  51.     rm -rf "${pkgdir}"/usr/lib
  52.     rm -rf "${pkgdir}"/usr/share/locale
  53.    
  54.     # purge exfalso
  55.     find "${pkgdir}" -name "exfalso*" | xargs rm -f
  56. }
  57.  
  58. package_exfalso() {
  59.         pkgdesc="Cross-platform audio tag editor."
  60.     depends=('pygtk' 'mutagen' 'quodlibet-libs')
  61.     cd "${srcdir}/${pkgbase}-${pkgver}"
  62.     ./setup.py install --prefix="${pkgdir}/usr"
  63.     install -D -m644 quodlibet/images/hicolor/64x64/apps/exfalso.png "${pkgdir}/usr/share/pixmaps/exfalso.png"
  64.  
  65.     # purge shared libs since quodlibet-libs provides them
  66.     rm -rf "${pkgdir}"/usr/lib
  67.     rm -rf "${pkgdir}"/usr/share/locale
  68.    
  69.     # purge quodlibet
  70.     find "${pkgdir}" -name "quodlibet*" | xargs rm -f
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement