# Template file for 'deadbeef'.
pkgname=deadbeef
version=0.5.6
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-gtk3 --disable-gtk2"
depends="desktop-file-utils hicolor-icon-theme"
makedepends="pkg-config intltool gtk+3-devel libSM-devel libICE-devel
 alsa-lib-devel ffmpeg-devel libvorbis-devel libcurl-devel imlib2-devel
 jpeg-devel libpng-devel libmad-devel libflac-devel wavpack-devel
 libsndfile-devel libcdio-devel libcddb-devel libX11-devel dbus-devel
 pulseaudio-devel faad2-devel libsamplerate-devel yasm"
short_desc="Ultimate Music Player For GNU/Linux"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-2,LGPL-2.1"
homepage="http://deadbeef.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=17c123eb50e33c89403d8d3035b9132463a227a6905fd42bcbb2a3a5616cea5b
long_desc="
 DeaDBeeF (as in 0xDEADBEEF) is an audio player for GNU/Linux, BSD, OpenSolaris
 and probably other UNIX-like systems.

 It is mainly written by Alexey Yakovenko, with contributions from a lot of
 different people (see about box in the player for more details).

 Some features (incomplete list):
 - mp3, ogg vorbis, flac, ape, wv, wav, m4a, mpc, tta, cd audio (and many more)
 - sid, nsf and lots of other popular chiptune formats
 - ID3v1, ID3v2.2, ID3v2.3, ID3v2.4, APEv2, xing/info tags support
 - unicode tags are fully supported as well (both utf8 and ucs2)
 - cuesheet (.cue files) support, with charset detection (utf8/cp1251/iso8859-1)
 - tracker modules like mod, s3m, it, xm, etc
 - gtk2 interface with efficient custom widgets
 - no GNOME or KDE dependencies
 - minimize to tray, with scrollwheel volume control
 - control playback from command line
 - global hotkeys
 - 18-band graphical equalizer
 - radio and podcast support for ogg vorbis, mp3 and aac streams
 - gapless playback
 - plugin support; bundled with lots of plugins
 - duration calculation is as precise as possible for vbr mp3 files (with and
   without xing/info tags)"

post_install() {
	vinstall ${FILESDIR}/deadbeef-queue.desktop 644 usr/share/applications
	# Remove devel stuff.
	rm -rf ${DESTDIR}/usr/include
}