cruxports/deadbeef/Pkgfile

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-02-26 14:04:55 -05:00
# Description: GTK audio player
2023-02-11 08:42:07 -05:00
# URL: http://deadbeef.sourceforge.io
2022-02-26 14:04:55 -05:00
# Maintainer: John McQuah, jmcquah at disroot dot org
2023-02-05 13:42:48 -05:00
# 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
2022-02-26 14:04:55 -05:00
name=deadbeef
version=1.9.5
2022-02-26 14:04:55 -05:00
release=1
source=(https://sourceforge.net/projects/$name/files/travis/linux/$version/$name-$version.tar.bz2 dbq)
build() {
cd $name-$version
2022-02-26 14:04:55 -05:00
PKGMK_DEADBEEF=(--disable-gtk2
--disable-nls
--disable-adplug
--prefix=/usr
--docdir=/usr/share/$name/doc)
2022-02-26 14:04:55 -05:00
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)
2022-02-26 14:04:55 -05:00
CC=clang CXX=clang++ ./configure ${PKGMK_DEADBEEF[@]}
2022-02-26 14:04:55 -05:00
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
2022-02-26 14:04:55 -05:00
}