Want more features on Pastebin? Sign Up, it's FREE!
Guest

Lastfm-msk AUR patch 1.5.4.27091

By: a guest on Dec 31st, 2010  |  syntax: Bash  |  size: 6.65 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: grimi <grimi@poczta.fm>
  2. # The Outta Hackerz from space who getz this pkgbuild working a 1st january: the_k586 <thek586@justforlulz.fr>
  3.  
  4. pkgname=lastfm-msk
  5. pkgver=1.5.4.27091.dfsg.1
  6. orgver=1.5.4.27091
  7. pkgrel=1
  8. pkgdesc="The Last.fm client with msk patchset"
  9. arch=('i686' 'x86_64')
  10. url="http://www.mehercule.net/staticpages/index.php/lastfm"
  11. license=('GPL')
  12. depends=('alsa-lib' 'libsm' 'libgpod' 'libmad' 'qt>=4.3')
  13. makedepends=('patch')
  14. provides=('lastfm-client')
  15. conflicts=('lastfm-client')
  16. install=lastfm-msk.install
  17. source=("http://ftp.de.debian.org/debian/pool/main/l/lastfm/lastfm_${orgver}+dfsg.orig.tar.gz" \
  18.         "http://www.mehercule.net/lastfm/build-fixes.diff" \
  19.         "http://www.mehercule.net/lastfm/gcc41.diff" \
  20.         "http://www.mehercule.net/lastfm/reduce-linkage.diff" \
  21.         "http://www.mehercule.net/lastfm/link-to-needed.diff" \
  22.         "http://www.mehercule.net/lastfm/no-fingerprint-lib.diff" \
  23.         "http://www.mehercule.net/lastfm/alsa-uses-qdebug.diff" \
  24.         "http://www.mehercule.net/lastfm/check-soundcard-errors.diff" \
  25.         "http://www.mehercule.net/lastfm/tray-icon-size.diff" \
  26.         "http://www.mehercule.net/lastfm/hide-scrobbledir-option.diff" \
  27.         "http://www.mehercule.net/lastfm/tray-volume.diff" \
  28.         "http://www.mehercule.net/lastfm/set-locale.diff" \
  29.         "http://www.mehercule.net/lastfm/set-firstrun-status.diff" \
  30.         "http://www.mehercule.net/lastfm/qt45.diff" \
  31.         "http://www.mehercule.net/lastfm/qt46.diff" \
  32.         "http://www.mehercule.net/lastfm/qt47.diff" \
  33.         "http://www.mehercule.net/lastfm/hide-loved-radio.diff" \
  34.         "http://www.mehercule.net/lastfm/ipod-scrobble-fix.diff" \
  35.         "http://www.mehercule.net/lastfm/sidebar-crash-fix.diff" \
  36.         "http://www.mehercule.net/lastfm/dirpaths.diff" \
  37.         "http://www.mehercule.net/lastfm/icons.tar.gz" \
  38.         "http://www.mehercule.net/lastfm/trayicons22.tar.gz" \
  39.         "http://www.mehercule.net/lastfm/multi-sound.diff" \
  40.         "http://www.mehercule.net/lastfm/dbus.diff" \
  41.         "http://www.mehercule.net/lastfm/tag-cloud.diff" \
  42.         "http://www.mehercule.net/lastfm/browser-select.diff" \
  43.         "http://www.mehercule.net/lastfm/no-cruft.diff" \
  44.         "lastfm.desktop" "lastfm.protocol")
  45.  
  46. build() {
  47.  
  48. #   cd ${srcdir}/last.fm-${orgver}
  49.    cd ${srcdir}/lastfm-${orgver}+dfsg
  50.  
  51.    patch -Np1 -i ../build-fixes.diff || return 1
  52.    patch -Np1 -i ../gcc41.diff || return 1
  53. #   patch -Np1 -i ../reduce-linkage.diff || return 1 //BROKEN
  54.    patch -Np1 -i ../link-to-needed.diff || return 1
  55.    patch -Np1 -i ../no-fingerprint-lib.diff || return 1
  56.    patch -Np1 -i ../alsa-uses-qdebug.diff || return 1
  57.    patch -Np1 -i ../check-soundcard-errors.diff || return 1
  58.    patch -Np1 -i ../tray-icon-size.diff || return 1
  59.    patch -Np1 -i ../hide-scrobbledir-option.diff || return 1
  60.    patch -Np1 -i ../tray-volume.diff || return 1
  61.    patch -Np1 -i ../set-locale.diff || return 1
  62.    patch -Np1 -i ../set-firstrun-status.diff || return 1
  63.    patch -Np1 -i ../qt45.diff || return 1
  64.    patch -Np1 -i ../qt46.diff || return 1
  65.    patch -Np1 -i ../qt47.diff || return 1
  66.    patch -Np1 -i ../hide-loved-radio.diff || return 1
  67.    patch -Np1 -i ../ipod-scrobble-fix.diff || return 1
  68.    patch -Np1 -i ../sidebar-crash-fix.diff || return 1
  69.    patch -Np1 -i ../dirpaths.diff || return 1
  70.    
  71. #   patch -Np1 -i ../multi-sound.diff || return 1 //BROKEN
  72.    patch -Np1 -i ../dbus.diff || return 1
  73.    patch -Np1 -i ../tag-cloud.diff || return 1
  74.    patch -Np1 -i ../browser-select.diff || return 1
  75.    patch -Np1 -i ../no-cruft.diff || return 1
  76.  
  77.    install -d ${pkgdir}/usr/{bin,share/applications,share/pixmaps,lib}
  78.    install -d ${pkgdir}/usr/share/lastfm/{icons,buttons,i18n,services}
  79.    install -d ${pkgdir}/usr/share/kde4/services
  80.  
  81.    qmake -config release || return 1
  82.    
  83.    ( cd i18n && lrelease *.ts )
  84.  
  85.    # Fix missing include (when gcc 4.4.0 is used) SEEMS NOT NEEDED ANYMOAR
  86.    #sed -i 's/#include <cstdlib>/#include <cstdio>\n#include <cstdlib>/' src/output/RtAudio/rtaudio/RtAudio.cpp
  87.  
  88.    make || return 1
  89.  
  90.    install -m644 i18n/*.qm ${pkgdir}/usr/share/lastfm/i18n
  91.  
  92.    install -m644 ${srcdir}/lastfm.protocol ${pkgdir}/usr/share/kde4/services
  93.    install -m644 ${srcdir}/lastfm.desktop ${pkgdir}/usr/share/applications
  94.    
  95.    cd bin
  96.  
  97.    install -m755 last.fm ${pkgdir}/usr/share/lastfm
  98.    echo -e '#!/bin/sh\nexec /usr/share/lastfm/last.fm\n' > lastfm
  99.    install -m755 lastfm ${pkgdir}/usr/bin
  100.  
  101.    install -m644 {libLastFmTools.so.1.0.0,libMoose.so.1.0.0} ${pkgdir}/usr/lib
  102.    cp -a libLastFmTools.so libLastFmTools.so.1 libLastFmTools.so.1.0 \
  103.          libMoose.so libMoose.so.1 libMoose.so.1.0 ${pkgdir}/usr/lib
  104.  
  105.    install -m644 services/* ${pkgdir}/usr/share/lastfm/services
  106.  
  107.    cd data
  108.    install -m644 about_generic.png app_55.png logo.png no*.gif \
  109.                  progress.mng progress_active.mng slider*.png \
  110.                  speaker*.png watermark.png wizard_generic.png \
  111.                  ${pkgdir}/usr/share/lastfm
  112.    
  113.    install -m644 buttons/*.png ${pkgdir}/usr/share/lastfm/buttons
  114.    install -m644 icons/*.png ${pkgdir}/usr/share/lastfm/icons
  115.    rm -f ${pkgdir}/usr/share/lastfm/icons/*profile24.png
  116.    install -m644 ${srcdir}/user_*22.png ${pkgdir}/usr/share/lastfm/icons
  117.    
  118.    install -m644 icons/as.png ${pkgdir}/usr/share/pixmaps/lastfm.png  
  119.  
  120.    cp -a ${srcdir}/icons ${pkgdir}/usr/share/
  121. }
  122. md5sums=('aec33bb9d216c2b56da686df1e475980'
  123.          '4690ad10fb7c7e65b73ebe85108b7f62'
  124.          '5db7a038558c1a72d87f6c3c293e222f'
  125.          '73ecc5f7cf769c404a7d7eb93e3d9cf0'
  126.          '9d3b1a76796befb092258a4adf2f79af'
  127.          '5d461b7a01e41fd1e3e9f2b9098fcb02'
  128.          'd2aabc27ea59f8afc939a7a3018d91bf'
  129.          'b6b4ceec7bf57f005102916a98e85eca'
  130.          '04b0129e637a77d2625981f57f00c9e7'
  131.          '087cff8111dc7b3515009a40e4b1453c'
  132.          'c0f52f311cde53bee1cfbd0517ed99e0'
  133.          'e14aa7c8c2afc02c211e0a5df2c9d494'
  134.          '91c0f8a409399697b44fe8ef4384e350'
  135.          '6a43e1d1aef20fe499ef04ffe07e20c3'
  136.          'd56b0b21bb01f0630e792b7498ba2eb5'
  137.          'c4300a389a1893b53133ed36da731303'
  138.          'bda1ee83334381c3de9e97895107d257'
  139.          'c0df7e112276dda80fa8703de2a8c44b'
  140.          '5f6ad07f54e2bd1c8c86b1293bb2f106'
  141.          '6410eae80c72645ef5630aee03ce40f2'
  142.          'fb450128e3e759d5ee5db8e2cd5f1d45'
  143.          'ad628454145b87babb8f164ff4b27b9b'
  144.          'ed78b04cba84cdfc6373ea180a5fcfed'
  145.          'bb37eae763122e061e5b61ea4584a273'
  146.          '61f9c5194af9fcad330e2cd3a619d9fb'
  147.          'cd5f80f92a8b0ea4030778a8f376c7c5'
  148.          '3d8222174885e338b70a6528e2a9a7e3'
  149.          'd0e5a0fb91180be4381f646f0eaa725c'
  150.          '8d40a2ec0c2d071d53759d1b08a5efb6')
clone this paste RAW Paste Data