diff options
author | Krzysztof (3ED) AS | 2015-07-02 10:03:49 +0200 |
---|---|---|
committer | Krzysztof (3ED) AS | 2015-07-02 10:03:49 +0200 |
commit | 17e248a94f050378cff0fc3063eeea051aaafdc1 (patch) | |
tree | e3b9f9ed82d6f9f3e0507c5248ac633cdf751001 /PKGBUILD | |
download | aur-17e248a94f050378cff0fc3063eeea051aaafdc1.tar.gz |
moving files, making space for additional scripts, aur4 and other stuff
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9c3543857f27 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,100 @@ +# Maintainer: 3ED <krzysztof1987 _at_ gmail _dot_ com> + +pkgbase=rhythmcat +pkgname=rhythmcat +true && pkgname=(rhythmcat rhythmcat-plugins rhythmcat-plugins-extra) +pkgver=1.0.1.1 +pkgrel=1 +_pkgname=RhythmCat +_pkgver=1.0.1-1 +pkgdesc="A Audio Player in GTK3 with plug-in support" +arch=('i686' 'x86_64') +url="https://code.google.com/p/rhythmcat/" +license=('GPL') +makedepends=('gtk-doc' 'gtksourceview3') +depends=('gtk3' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'dbus-glib') +source=(https://rhythmcat.googlecode.com/files/${_pkgname}-${_pkgver}_Source.tar.bz2 +) +sha256sums=('baac929234d328392ebe2761faea6e9c0efa6bb49c3b77e836771ebd81e515f9') + +_plugins_base=(desktop-lyric lyric-show music-locator notify) +_plugins_extra=(lyric-crawler lyric-editor tageditor) + +prepare() { + gendesk -n -f \ + --pkgname="${_pkgname}" \ + --pkgdesc="${pkgdesc}" \ + --genericname="RhythmCat Music Player" \ + --categories="AudioVideo;Player;GTK" \ + --mimetypes='application/x-ogg;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-mpegurl;audio/x-flac' +} + +build() { + cd ${_pkgname}-${_pkgver} + + ./configure \ + --prefix=/usr \ + --enable-gtk3 + + make + + for i in "${_plugins_base[@]}"; do + make --makefile=Makefile3 -C plugins/base/$i + done + + for i in "${_plugins_extra[@]}"; do + make --makefile=Makefile3 -C plugins/extra/$i + done +} + +check() { + cd ${_pkgname}-${_pkgver} + make check +} + +package_rhythmcat() { + pkgdesc="A Audio Player in GTK3" + optdepends=('gstreamer0.10-ugly-plugins: Extra media codecs' + 'gstreamer0.10-bad-plugins: Extra media codecs' + 'gstreamer0.10-ffmpeg: Extra media codecs' + 'rhythmcat-plugins: Base plugins' + 'rhythmcat-plugins-extra: Extra plugins') + + install -dm755 "$pkgdir"/usr/share/{applications,pixmaps}/ + install -m 644 ${_pkgname}.desktop "$pkgdir/usr/share/applications/" + + cd ${_pkgname}-${_pkgver} + make DESTDIR="$pkgdir/" install + + ln -s ../RhythmCat/images/RhythmCat_128x128.PNG \ + "$pkgdir"/usr/share/pixmaps/${_pkgname}.png +} + +package_rhythmcat-plugins() { + pkgdesc="Base plugins for RhythmCat" + depends=(rhythmcat gtksourceview3) + + cd ${_pkgname}-${_pkgver} + + for i in "${_plugins_base[@]}"; do + make INSTALL_DIR="$pkgdir/usr/share/RhythmCat/plugins/$i" -C plugins/base/$i install + done +} + +package_rhythmcat-plugins-extra() { + pkgdesc="Extra plugins for RhythmCat" + depends=(rhythmcat) + + cd $srcdir/${_pkgname}-${_pkgver} + + for i in "${_plugins_extra[@]}"; do + make INSTALL_DIR="$pkgdir/usr/share/RhythmCat/plugins/$i" -C plugins/extra/$i install + done +} + + +# AUR: +pkgdesc="A Audio Player in GTK3 with plug-in support" +depends=('gtk3' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'dbus-glib') + +# vim:set ts=2 sw=2 et: |