1 # $Id: PKGBUILD 55351 2011-09-10 09:52:00Z andrea $
3 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
8 pkgdesc="An open-source jukebox for large collections of mp3/ogg/flac files, written in perl"
10 url="http://squentin.free.fr/gmusicbrowser/gmusicbrowser.html"
13 optdepends=('alsa-utils: enables the ALSA backend'
14 'flac123: flac support for the ALSA backend'
15 'mpg321: mp3 support for the ALSA backend'
16 'vorbis-tools: vorbis support for the ALSA backend'
17 'mplayer: enables the mplayer backend'
18 'perl-gstreamer: enables the gstreamer backend'
19 'gstreamer0.10-base: vorbis supportfor the gstreamer backend'
20 'gstreamer0.10-good-plugins: flac support for the gstreamer backend'
21 'gstreamer0.10-ugly-plugins: mp3 support for the gstreamer backend'
22 'perl-gtk2-trayicon: tray icon support'
23 'perl-gtk2-mozembed: web-based plugins support'
24 'perl-gtk2-webkit: alternative web-based plugin suppor'
25 'perl-locale-gettext: localization support'
26 'perl-net-dbus: control gmusicbrowser through dbus and gnome hotkeys')
28 install=gmusicbrowser.install
29 source=("http://squentin.free.fr/${pkgname}/${pkgname}-${pkgver}.tar.gz"
30 gmusicbrowser.desktop)
31 md5sums=('b5a3839d0e1a55151657d2192a6a8a41' 'b6d641a139675344983e358bb54affa0')
34 cd "${srcdir}"/${pkgname}-${pkgver}
35 install -d "${pkgdir}"/usr/share/gmusicbrowser/{pix/{tango,gnome-classic},plugins}
36 install -Dm755 gmusicbrowser.pl "${pkgdir}"/usr/bin/gmusicbrowser
37 install -Dm644 gmusicbrowser.man "${pkgdir}"/usr/share/man/man1/gmusicbrowser.1
38 install -m755 iceserver.pl "${pkgdir}"/usr/share/gmusicbrowser/iceserver.pl
39 install -m644 *.pm layouts "${pkgdir}"/usr/share/gmusicbrowser/
40 install -m644 pix/*.png "${pkgdir}"/usr/share/gmusicbrowser/pix/
41 install -m644 pix/gnome-classic/*.png "${pkgdir}"/usr/share/gmusicbrowser/pix/gnome-classic/
42 install -m644 pix/tango/*.png "${pkgdir}"/usr/share/gmusicbrowser/pix/tango/
43 install -m644 plugins/*.pm "${pkgdir}"/usr/share/gmusicbrowser/plugins/
46 for locale in $(ls locale) ; do
47 install -Dm644 locale/${locale}/LC_MESSAGES/gmusicbrowser.mo \
48 "${pkgdir}"/usr/share/locale/${locale}/LC_MESSAGES/gmusicbrowser.mo
52 install -Dm644 "${srcdir}"/gmusicbrowser.desktop \
53 "${pkgdir}"/usr/share/applications/gmusicbrowser.desktop
56 install -Dm644 pix/trayicon.png \
57 "${pkgdir}"/usr/share/icons/hicolor/16x16/apps/gmusicbrowser.png
58 install -Dm644 pix/gmusicbrowser32x32.png \
59 "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/gmusicbrowser.png
60 install -Dm644 pix/gmusicbrowser.png \
61 "${pkgdir}"/usr/share/icons/hicolor/48x48/apps/gmusicbrowser.png
62 install -Dm644 pix/gmusicbrowser.png \
63 "${pkgdir}"/usr/share/pixmaps/gmusicbrowser.png