1 # Maintainer: Patrick Mullaney <pajmullaney@gmail.com>
2 # Contributor: Techlive Zheng <techlivezheng@gmail.com>
4 pkgname=google-musicmanager
7 pkgdesc="A simple application for adding the music files on your computer to your Google Music library."
9 url="http://music.google.com"
10 license=('custom:musicmanager')
11 depends=('flac' 'qt' 'fontconfig' 'libogg' 'freetype2' 'libvorbis' 'xdg-utils' 'libidn')
12 optdepends=('log4cxx')
14 install=${pkgname}.install
16 if [ "$CARCH" = "x86_64" ]; then
18 md5sums=('f98a581295d9c338e754422ea279f337')
19 elif [ "$CARCH" = "i686" ]; then
21 md5sums=('6388d3f89a5f04c7aec991228a90030f')
24 source=("google-musicmanager-beta-${_arch}-${pkgver}.deb::http://dl.google.com/linux/direct/google-musicmanager-beta_current_${_arch}.deb")
28 ar -xv google-musicmanager-beta-${_arch}-${pkgver}.deb
29 tar -xvf data.tar.lzma
30 tar -xvf control.tar.gz
32 #Auto fetch the latest version.
33 :;pkgver=`grep "Version" control | cut -d: -f2 | sed 's/^ *//g' | sed 's/ *$//g' | sed 's/-/_/g'`
35 #Debian package source files cleaning.
38 rm -f $srcdir/opt/google/musicmanager/product_logo_32.xpm
41 #Auto fetch the latest version.
42 :;pkgver=`grep "Version" control | cut -d: -f2 | sed 's/^ *//g' | sed 's/ *$//g' | sed 's/-/_/g'`
44 install -d $pkgdir/{opt,usr/{bin,share/applications}}
47 cd $srcdir/opt/google/musicmanager
48 find . -type d -exec install -d {,${pkgdir}/opt/google/musicmanager/}{} \;
49 find . -type f -exec install -D -m 644 {,${pkgdir}/opt/google/musicmanager/}{} \;
51 #Make google/musicmanager executable.
52 chmod 755 ${pkgdir}/opt/google/musicmanager/{google-musicmanager,minidump_upload,xdg-settings,xdg-mime,MusicManager}
54 #Installing icons to /usr/share/icons/hicolor/
57 install -D -m644 $pkgdir/opt/google/musicmanager/product_logo_${i}.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/google-musicmanager.png
60 install -D -m644 $pkgdir/opt/google/musicmanager/google-musicmanager.desktop $pkgdir/usr/share/applications
62 ln -s /opt/google/musicmanager/google-musicmanager $pkgdir/usr/bin/