cruxports/deadbeef/Pkgfile

35 lines
1018 B
Plaintext
Raw Normal View History

2022-02-26 14:04:55 -05:00
# Description: GTK audio player
# URL: http://deadbeef.sf.net
# Maintainer: John McQuah, jmcquah at disroot dot org
2022-04-26 07:51:12 -04:00
# Depends on: alsa-lib gtk3 jansson libdispatch libmad yasm
2022-02-26 14:04:55 -05:00
# Optional: libcdio libsndfile libsamplerate mpg123 flac libvorbis ffmpeg4 faad2 wildmidi dbus pulseaudio
name=deadbeef
2022-08-14 21:19:55 -04:00
version=1.9.1
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
# if version 5 of ffmpeg is installed, prevent configure from using it
prt-get isinst ffmpeg && export PKG_CONFIG_PATH='/usr/lib/ffmpeg4/pkgconfig'
CC=clang CXX=clang++ ./configure \
--prefix=/usr \
2022-03-17 20:42:56 -04:00
--disable-gtk2 \
2022-02-26 14:04:55 -05:00
--disable-nls
make
make DESTDIR=$PKG install
# clean up footprint
find $PKG/usr/lib -name "*.la" -exec rm -f '{}' +
rm -f $PKG/usr/share/doc/$name/{COPYING,ChangeLog,README}*
# provide a plugin for nnn
if prt-get isinst nnn; then
mkdir -p $PKG/usr/share/nnn/plugins
install -m 0755 $SRC/dbq $PKG/usr/share/nnn/plugins
fi
}