updated on Fri Jan 20 20:16:25 UTC 2012
[aur-mirror.git] / rhythmcat / PKGBUILD
blobf3dcf76fb4176f987560589d2a3d5193c6eb8129
1 # Maintainer: 3ED <krzysztof1987 _at_ gmail _dot_ com>
3 pkgbase=rhythmcat
4 pkgname=rhythmcat
5 true && pkgname=(rhythmcat rhythmcat-plugins rhythmcat-plugins-extra)
6 pkgver=1.0.1
7 pkgrel=1
8 _pkgname=RhythmCat
9 _pkgver=1 
10 pkgdesc="A Audio Player in GTK3 with plug-in support"
11 arch=('i686' 'x86_64')
12 url="https://code.google.com/p/rhythmcat/"
13 license=('GPL')
14 makedepends=('gtk-doc')
15 depends=('gtk3' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'dbus-glib')
16 source=(https://rhythmcat.googlecode.com/files/${_pkgname}-${pkgver}-${_pkgver}_Source.tar.bz2
17         RhythmCat.desktop)
18 sha256sums=('baac929234d328392ebe2761faea6e9c0efa6bb49c3b77e836771ebd81e515f9'
19             'f55c24ebfce8688c440b28487774c991d7aa85d817baf446cf1f5e2e53be2773')
21 _plugins_base=(desktop-lyric lyric-show music-locator notify)
22 _plugins_extra=(lyric-crawler lyric-editor tageditor)
24 build() {
25   cd "$srcdir/${_pkgname}-${pkgver}-${_pkgver}"
27   ./configure \
28     --prefix=/usr \
29     --enable-gtk3 
31   make
33 # ------------
35   cd "$srcdir/${_pkgname}-${pkgver}-${_pkgver}/plugins/base/"
37   for i in "${_plugins_base[@]}"; do
38     test -f "$i/Makefile3" || continue
39     (cd "$i" && make --makefile=Makefile3)
40   done
42 # ------------
44   cd "$srcdir/${_pkgname}-${pkgver}-${_pkgver}/plugins/extra/"
46   for i in "${_plugins_extra[@]}"; do
47     test -f "$i/Makefile3" || continue
48     (cd "$i" && make --makefile=Makefile3)
49   done
52 check() {
53   cd "$srcdir/${_pkgname}-${pkgver}-${_pkgver}"
55   make check
58 package_rhythmcat() {
59   pkgdesc="A Audio Player in GTK3"
60   optdepends=('gstreamer0.10-ugly-plugins: Extra media codecs'
61               'gstreamer0.10-bad-plugins: Extra media codecs'
62               'gstreamer0.10-ffmpeg: Extra media codecs'
63               'rhythmcat-plugins: Base plugins'
64               'rhythmcat-plugins-extra: Extra plugins')
66   cd "$srcdir/${_pkgname}-${pkgver}-${_pkgver}"
68   make DESTDIR="$pkgdir/" install
70   install -dm755 "$pkgdir/usr/share/applications/"
71   install -m 644 "$srcdir/RhythmCat.desktop" "$pkgdir/usr/share/applications/"
74 package_rhythmcat-plugins() {
75   pkgdesc="Base plugins for RhythmCat"
76   depends=(rhythmcat gtksourceview3)
78   cd "$srcdir/${_pkgname}-${pkgver}-${_pkgver}/plugins/base/"
80   install -dm755 "$pkgdir"/usr/share/RhythmCat/plugins/
81   for i in "${_plugins_base[@]}"; do
82     test -f "$i/Makefile3" || continue
83     (cd "$i" && make INSTALL_DIR="$pkgdir/usr/share/RhythmCat/plugins/$i" install)
84   done
86 package_rhythmcat-plugins-extra() {
87   pkgdesc="Extra plugins for RhythmCat"
88   depends=(rhythmcat)
90   cd "$srcdir/${_pkgname}-${pkgver}-${_pkgver}/plugins/extra/"
92   install -dm755 "$pkgdir"/usr/share/RhythmCat/plugins/
93   for i in "${_plugins_extra[@]}"; do
94     test -f "$i/Makefile3" || continue
95     (cd "$i" && make INSTALL_DIR="$pkgdir/usr/share/RhythmCat/plugins/$i" install)
96   done
100 # AUR:
101 pkgdesc="A Audio Player in GTK3 with plug-in support"
102 depends=('gtk3' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'dbus-glib')
104 # vim:set ts=2 sw=2 et: