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>
5 pkgver=1.5.4.27091.dfsg.1
8 pkgdesc="The Last.fm client with msk patchset"
10 url="http://www.mehercule.net/staticpages/index.php/lastfm"
12 depends=('alsa-lib' 'libsm' 'libgpod' 'libmad' 'qt>=4.3')
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/no-fingerprint-lib.diff" \
22 "http://www.mehercule.net/lastfm/alsa-uses-qdebug.diff" \
23 "http://www.mehercule.net/lastfm/check-soundcard-errors.diff" \
24 "http://www.mehercule.net/lastfm/tray-icon-size.diff" \
25 "http://www.mehercule.net/lastfm/hide-scrobbledir-option.diff" \
26 "http://www.mehercule.net/lastfm/tray-volume.diff" \
27 "http://www.mehercule.net/lastfm/set-locale.diff" \
28 "http://www.mehercule.net/lastfm/set-firstrun-status.diff" \
29 "http://www.mehercule.net/lastfm/qt45.diff" \
30 "http://www.mehercule.net/lastfm/qt46.diff" \
31 "http://www.mehercule.net/lastfm/qt47.diff" \
32 "http://www.mehercule.net/lastfm/hide-loved-radio.diff" \
33 "http://www.mehercule.net/lastfm/ipod-scrobble-fix.diff" \
34 "http://www.mehercule.net/lastfm/sidebar-crash-fix.diff" \
35 "http://www.mehercule.net/lastfm/dirpaths.diff" \
36 "http://www.mehercule.net/lastfm/icons.tar.gz" \
37 "http://www.mehercule.net/lastfm/trayicons22.tar.gz" \
38 "http://www.mehercule.net/lastfm/multi-sound.diff" \
39 "http://www.mehercule.net/lastfm/dbus.diff" \
40 "http://www.mehercule.net/lastfm/tag-cloud.diff" \
41 "http://www.mehercule.net/lastfm/browser-select.diff" \
42 "http://www.mehercule.net/lastfm/no-cruft.diff" \
43 "lastfm.desktop" "lastfm.protocol")
47 # cd ${srcdir}/last.fm-${orgver}
48 cd ${srcdir}/lastfm-${orgver}+dfsg
50 patch -Np1 -i ../build-fixes.diff || return 1
51 patch -Np1 -i ../gcc41.diff || return 1
52 # patch -Np1 -i ../reduce-linkage.diff || return 1 // BROKEN
53 # patch -Np1 -i ../link-to-needed.diff || return 1 // BROKEN
54 patch -Np1 -i ../no-fingerprint-lib.diff || return 1
55 patch -Np1 -i ../alsa-uses-qdebug.diff || return 1
56 patch -Np1 -i ../check-soundcard-errors.diff || return 1
57 patch -Np1 -i ../tray-icon-size.diff || return 1
58 patch -Np1 -i ../hide-scrobbledir-option.diff || return 1
59 patch -Np1 -i ../tray-volume.diff || return 1
60 patch -Np1 -i ../set-locale.diff || return 1
61 patch -Np1 -i ../set-firstrun-status.diff || return 1
62 patch -Np1 -i ../qt45.diff || return 1
63 patch -Np1 -i ../qt46.diff || return 1
64 patch -Np1 -i ../qt47.diff || return 1
65 patch -Np1 -i ../hide-loved-radio.diff || return 1
66 patch -Np1 -i ../ipod-scrobble-fix.diff || return 1
67 patch -Np1 -i ../sidebar-crash-fix.diff || return 1
68 patch -Np1 -i ../dirpaths.diff || return 1
70 # patch -Np1 -i ../multi-sound.diff || return 1 //BROKEN
71 patch -Np1 -i ../dbus.diff || return 1
72 patch -Np1 -i ../tag-cloud.diff || return 1
73 patch -Np1 -i ../browser-select.diff || return 1
74 patch -Np1 -i ../no-cruft.diff || return 1
76 install -d ${pkgdir}/usr/{bin,share/applications,share/pixmaps,lib}
77 install -d ${pkgdir}/usr/share/lastfm/{icons,buttons,i18n,services}
78 install -d ${pkgdir}/usr/share/kde4/services
80 qmake -config release || return 1
82 ( cd i18n && lrelease *.ts )
84 # Fix missing include (when gcc 4.4.0 is used) SEEMS NOT NEEDED ANYMORE
85 #sed -i 's/#include <cstdlib>/#include <cstdio>\n#include <cstdlib>/' src/output/RtAudio/rtaudio/RtAudio.cpp
89 install -m644 i18n/*.qm ${pkgdir}/usr/share/lastfm/i18n
91 install -m644 ${srcdir}/lastfm.protocol ${pkgdir}/usr/share/kde4/services
92 install -m644 ${srcdir}/lastfm.desktop ${pkgdir}/usr/share/applications
96 install -m755 last.fm ${pkgdir}/usr/share/lastfm
97 echo -e '#!/bin/sh\nexec /usr/share/lastfm/last.fm\n' > lastfm
98 install -m755 lastfm ${pkgdir}/usr/bin
100 install -m644 {libLastFmTools.so.1.0.0,libMoose.so.1.0.0} ${pkgdir}/usr/lib
101 cp -a libLastFmTools.so libLastFmTools.so.1 libLastFmTools.so.1.0 \
102 libMoose.so libMoose.so.1 libMoose.so.1.0 ${pkgdir}/usr/lib
104 install -m644 services/* ${pkgdir}/usr/share/lastfm/services
107 install -m644 about_generic.png app_55.png logo.png no*.gif \
108 progress.mng progress_active.mng slider*.png \
109 speaker*.png watermark.png wizard_generic.png \
110 ${pkgdir}/usr/share/lastfm
112 install -m644 buttons/*.png ${pkgdir}/usr/share/lastfm/buttons
113 install -m644 icons/*.png ${pkgdir}/usr/share/lastfm/icons
114 rm -f ${pkgdir}/usr/share/lastfm/icons/*profile24.png
115 install -m644 ${srcdir}/user_*22.png ${pkgdir}/usr/share/lastfm/icons
117 install -m644 icons/as.png ${pkgdir}/usr/share/pixmaps/lastfm.png
119 cp -a ${srcdir}/icons ${pkgdir}/usr/share/
122 md5sums=('aec33bb9d216c2b56da686df1e475980'
123 '488de729055fea7f85dfa3f83da2f57c'
124 '5db7a038558c1a72d87f6c3c293e222f'
125 '73ecc5f7cf769c404a7d7eb93e3d9cf0'
126 '5d461b7a01e41fd1e3e9f2b9098fcb02'
127 'd2aabc27ea59f8afc939a7a3018d91bf'
128 'b6b4ceec7bf57f005102916a98e85eca'
129 '04b0129e637a77d2625981f57f00c9e7'
130 '087cff8111dc7b3515009a40e4b1453c'
131 'c0f52f311cde53bee1cfbd0517ed99e0'
132 'e14aa7c8c2afc02c211e0a5df2c9d494'
133 '91c0f8a409399697b44fe8ef4384e350'
134 '6a43e1d1aef20fe499ef04ffe07e20c3'
135 'd56b0b21bb01f0630e792b7498ba2eb5'
136 'c4300a389a1893b53133ed36da731303'
137 'bda1ee83334381c3de9e97895107d257'
138 'c0df7e112276dda80fa8703de2a8c44b'
139 '5f6ad07f54e2bd1c8c86b1293bb2f106'
140 '6410eae80c72645ef5630aee03ce40f2'
141 'fb450128e3e759d5ee5db8e2cd5f1d45'
142 'ad628454145b87babb8f164ff4b27b9b'
143 'ed78b04cba84cdfc6373ea180a5fcfed'
144 'bb37eae763122e061e5b61ea4584a273'
145 '61f9c5194af9fcad330e2cd3a619d9fb'
146 'cd5f80f92a8b0ea4030778a8f376c7c5'
147 '3d8222174885e338b70a6528e2a9a7e3'
148 'd0e5a0fb91180be4381f646f0eaa725c'
149 '8d40a2ec0c2d071d53759d1b08a5efb6')