updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lastfm-msk-light / PKGBUILD
blob1b8086b64672ac10adfaa93e1df7ef81f7542099
1 # Contributor: grimi <grimi@poczta.fm>
2 # Contributor: Tilman Blumenbach <tilman@ax86.net>
4 # NOTES regarding patches:
5 # - link-to-needed.diff has been removed because reduce-linkage.diff already
6 #   contains its changes to src/src.pro.
8 pkgname=lastfm-msk-light
9 pkgver=1.5.4.26862+dfsg.4a
10 _dl_pkgver=1.5.4.26862+dfsg
11 pkgrel=4
12 pkgdesc="Last.fm client with msk patchset (light version - Debian patches only)"
13 arch=('i686' 'x86_64')
14 url="http://www.mehercule.net/staticpages/index.php/lastfm"
15 license=('GPL')
16 depends=('libgpod' 'libmad' 'qt>=4.3' 'hicolor-icon-theme' 'which')
17 makedepends=('patch')
18 provides=('lastfm-client')
19 conflicts=('lastfm-client' 'lastfm-msk')
20 options=(!makeflags)
21 install=lastfm-msk.install
22 source=("http://ftp.debian.org/debian/pool/main/l/lastfm/lastfm_${_dl_pkgver}.orig.tar.gz" \
23         "http://www.mehercule.net/lastfm/build-fixes.diff" \
24         "http://www.mehercule.net/lastfm/reduce-linkage.diff" \
25         "http://www.mehercule.net/lastfm/no-fingerprint-lib.diff" \
26         "http://www.mehercule.net/lastfm/alsa-uses-qdebug.diff" \
27         "http://www.mehercule.net/lastfm/check-soundcard-errors.diff" \
28         "http://www.mehercule.net/lastfm/tray-icon-size.diff" \
29         "http://www.mehercule.net/lastfm/hide-scrobbledir-option.diff" \
30         "http://www.mehercule.net/lastfm/tray-volume.diff" \
31         "http://www.mehercule.net/lastfm/set-locale.diff" \
32         "http://www.mehercule.net/lastfm/set-firstrun-status.diff" \
33         "http://www.mehercule.net/lastfm/qt45.diff" \
34         "http://www.mehercule.net/lastfm/qt46.diff" \
35         "http://www.mehercule.net/lastfm/qt47.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         "lastfm.desktop" "lastfm.protocol" "lastfm.sh")
41 build() {
43    cd ${srcdir}/lastfm-${_dl_pkgver}
45    local patch
46    for patch in "${source[@]}"; do
47       if [ `expr "$patch" : '^.\+\.diff$'` -gt 0 ]; then
48          local patchfile=`basename "${patch}"`
49          msg2 "Applying patch ${patchfile}..."
50          patch -Np 1 -i "${srcdir}/${patchfile}" || return 1
51       fi
52    done
54    install -d ${pkgdir}/usr/{bin,share/applications,share/pixmaps,lib}
55    install -d ${pkgdir}/usr/share/lastfm/{icons,buttons,i18n,services}
56    install -d ${pkgdir}/usr/share/kde4/services
58    ./configure || return 1
59    
60    ( cd i18n && lrelease *.ts )
62    MAKEFLAGS=-j1 make || return 1
64    install -m644 i18n/*.qm ${pkgdir}/usr/share/lastfm/i18n
66    install -m644 ${srcdir}/lastfm.protocol ${pkgdir}/usr/share/kde4/services
67    install -m644 ${srcdir}/lastfm.desktop ${pkgdir}/usr/share/applications
68    
69    cd bin
71    install -m755 last.fm ${pkgdir}/usr/share/lastfm
72    install -m755 "${srcdir}/lastfm.sh" "${pkgdir}/usr/bin/lastfm"
74    install -m644 {libLastFmTools.so.1.0.0,libMoose.so.1.0.0} ${pkgdir}/usr/lib
75    cp -a libLastFmTools.so libLastFmTools.so.1 libLastFmTools.so.1.0 \
76          libMoose.so libMoose.so.1 libMoose.so.1.0 ${pkgdir}/usr/lib
78    install -m644 services/* ${pkgdir}/usr/share/lastfm/services
80    cd data
81    install -m644 about_generic.png app_55.png logo.png no*.gif \
82                  progress.mng progress_active.mng slider*.png \
83                  speaker*.png watermark.png wizard_generic.png \
84                  ${pkgdir}/usr/share/lastfm
85    
86    install -m644 buttons/*.png ${pkgdir}/usr/share/lastfm/buttons
87    rm -f icons/*profile24.png
88    install -m644 icons/*.png ${pkgdir}/usr/share/lastfm/icons
89    install -m644 ${srcdir}/user_*22.png ${pkgdir}/usr/share/lastfm/icons
90    
91    install -m644 icons/as.png ${pkgdir}/usr/share/pixmaps/lastfm.png   
93    cp -a ${srcdir}/icons ${pkgdir}/usr/share/
96 md5sums=('c7991fd2636ca25e68ff476578b506a6'
97          '8e03b5cae4df25cbf3fe3715182e025d'
98          '9dd13858d170c387281aa2effb9d5c18'
99          'd3eafc0a42e6c4795ab224e52afa15fb'
100          'd2aabc27ea59f8afc939a7a3018d91bf'
101          'a9096239a56bc36aac6fafcd19d312ea'
102          '04b0129e637a77d2625981f57f00c9e7'
103          '087cff8111dc7b3515009a40e4b1453c'
104          'c0f52f311cde53bee1cfbd0517ed99e0'
105          'e14aa7c8c2afc02c211e0a5df2c9d494'
106          '3253bf7a5a65bce2c7ab95be829c2669'
107          '6a43e1d1aef20fe499ef04ffe07e20c3'
108          'd56b0b21bb01f0630e792b7498ba2eb5'
109          '3c8df40ae1baaf31119d5a555a9aa45c'
110          '6410eae80c72645ef5630aee03ce40f2'
111          'fb450128e3e759d5ee5db8e2cd5f1d45'
112          'ad628454145b87babb8f164ff4b27b9b'
113          '12c8246b422a4c4f3d769ba02ef5696a'
114          '8d40a2ec0c2d071d53759d1b08a5efb6'
115          'c25089833fa41c3d84eb18cc25b6feb5')