# Maintainer: ToadKing # Contributor: Soukyuu # Contributor: archtux pkgname=deadbeef-git pkgver=r11331.c8e39422e pkgrel=1 pkgdesc="A GTK+ audio player for GNU/Linux (devel branch)" url="https://deadbeef.sourceforge.io/" arch=('i686' 'x86_64') license=('GPL2' 'LGPL2.1' 'ZLIB') depends=('alsa-lib' 'hicolor-icon-theme' 'jansson' 'libblocksruntime' 'libdispatch') makedepends=('curl' 'faad2' 'flac' 'git' 'intltool' 'imlib2' 'libcddb' 'libcdio' 'libmad' 'libpulse' 'libsamplerate' 'libvorbis' 'libx11' 'libzip' 'wavpack' 'yasm' 'ffmpeg' 'gtk2' 'gtk3' 'clang' 'libpipewire') optdepends=('gtk2: for the GTK2 interface' 'gtk3: for the GTK3 interface' 'libsamplerate: for dsp_libsrc plugin (resampler)' 'libsm: optional dependency for gtkui session client support' 'libice: optional dependency for gtkui session client support' 'alsa-lib: ALSA support' 'alsa-oss: for OSS output plugin' 'libvorbis: for ogg vorbis plugin' 'libogg: for ogg vorbis plugin' 'libmad: for mp3 plugin (mpeg1,2 layers1,2,3)' 'flac: for flac plugin' 'curl: for last.fm, vfs_curl (shoutcast/icecast), artwork plugins' 'imlib2: for artwork plugin' 'wavpack: for wavpack plugin' 'libsndfile: for sndfile plugin' 'libcdio: for cd audio plugin' 'libcddb: for cd audio plugin' 'cdparanoia: for cd audio plugin' 'faad2: for AAC plugin' 'dbus: for notification daemon support (OSD current song notifications)' 'pulseaudio: for PulseAudio output plugin' 'libx11: for global hotkeys plugin' 'zlib: for Audio Overload plugin (psf, psf2, etc), GME (for vgz)' 'yasm: required to build assembly portions of ffap plugin' 'libzip: for vfs_zip plugin' 'ffmpeg: for ffmpeg plugin' 'opusfile: for opus plugin' 'mpg123: for MP1/MP2/MP3 playback' 'libpipewire: for pipewire plugin') options=('!libtool') conflicts=('deadbeef') provides=('deadbeef=1.9.5') source=('git+https://github.com/DeaDBeeF-Player/deadbeef.git') md5sums=('SKIP') prepare() { cd "$srcdir/deadbeef" # skip osx/deps and external/apbuild submodules git -c submodule."osx/deps".update=none -c submodule."external/apbuild".update=none submodule update --init --recursive } build() { cd "$srcdir/deadbeef" ./autogen.sh CC=clang CXX=clang++ ./configure --prefix=/usr make } package() { cd "$srcdir/deadbeef" make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } pkgver() { cd "$srcdir/deadbeef" echo r$(git rev-list --count master).$(git rev-parse --short master) }