updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / gmusicbrowser / PKGBUILD
blobbdeb84d8189ec8810d35253013cfdac47fb0c3c0
1 # $Id: PKGBUILD 55351 2011-09-10 09:52:00Z andrea $
2 # Maintainer:
3 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
5 pkgname=gmusicbrowser
6 pkgver=1.0.2
7 pkgrel=2
8 pkgdesc="An open-source jukebox for large collections of mp3/ogg/flac files, written in perl"
9 arch=('any')
10 url="http://squentin.free.fr/gmusicbrowser/gmusicbrowser.html"
11 license=('GPL')
12 depends=('gtk2-perl')
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')
27 options=('!libtool')
28 install=gmusicbrowser.install
29 source=("http://squentin.free.fr/${pkgname}/${pkgname}-${pkgver}.tar.gz"
30         gmusicbrowser.desktop)
31 md5sums=('b5a3839d0e1a55151657d2192a6a8a41' 'b6d641a139675344983e358bb54affa0')
33 package() {
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/
45         # Locales
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
49         done
51         # Desktop file
52         install -Dm644 "${srcdir}"/gmusicbrowser.desktop \
53                 "${pkgdir}"/usr/share/applications/gmusicbrowser.desktop
55         # Pixmap files
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