updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / rhythmcat / PKGBUILD
blob5e2b29e3d2c431106c7122082d405941f821af51
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.0
7 pkgrel=14
8 _pkgname=RhythmCat
9 _pkgver=1 
10 pkgdesc="A Audio Player in GTK3 with plug-in support (stable release)"
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=('463ec413f4266fb13a1779dfc2a95b9d16eeed5c5053c38e78b26fba9d851c50'
19             '8e08af473e76b03abcec4d39c61e6af30c6d6c4dfe956ef1db95d3eea0554862')
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 (stable release)"
102 depends=('gtk3' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'dbus-glib')
104 # vim:set ts=2 sw=2 et: