cruxports/deadbeef/Pkgfile

38 lines
1.2 KiB
Plaintext

# Description: GTK audio player
# URL: http://deadbeef.sourceforge.io
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: alsa-lib gtk3 jansson libdispatch libmad yasm
# Optional: cdparanoia libcdio libsndfile libsamplerate mpg123 flac libogg libvorbis faad2 wildmidi dbus opusfile pulseaudio pipewire wavpack libzip
name=deadbeef
version=1.9.5
release=1
source=(https://sourceforge.net/projects/$name/files/travis/linux/$version/$name-$version.tar.bz2 dbq)
build() {
cd $name-$version
PKGMK_DEADBEEF=(--disable-gtk2
--disable-nls
--disable-adplug
--prefix=/usr
--docdir=/usr/share/$name/doc)
prt-get isinst pulseaudio || PKGMK_DEADBEEF+=(--disable-pulse)
prt-get isinst pipewire || PKGMK_DEADBEEF+=(--disable-pipewire)
prt-get isinst opusfile || PKGMK_DEADBEEF+=(--disable-opus)
prt-get isinst wildmidi || PKGMK_DEADBEEF+=(--disable-wildmidi)
CC=clang CXX=clang++ ./configure ${PKGMK_DEADBEEF[@]}
make
make DESTDIR=$PKG install
# clean up footprint
find $PKG/usr/lib -name "*.la" -delete
rm -f $PKG/usr/share/$name/doc/{COPYING,ChangeLog,README}*
# provide a plugin for nnn
prt-get isinst nnn && install -Dt $PKG/usr/share/nnn/plugins -m 0755 $SRC/dbq
}