cruxports/mpc/Pkgfile

27 lines
739 B
Plaintext
Raw Normal View History

2022-02-05 15:39:19 -05:00
# Description: minimalistic CLI to the music player daemon
# URL: https://www.musicpd.org/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: meson ninja libmpdclient
# Nice to have: nnn
name=mpc
version=0.34
release=1
source=(https://www.musicpd.org/download/$name/0/$name-$version.tar.xz mpdiradd mpc.1)
build() {
cd $name-$version
meson . output --prefix=/usr --buildtype=plain
ninja -C output -j ${JOBS-1}
DESTDIR=$PKG ninja -C output install
rm -rf $PKG/usr/share/doc
mkdir -p $PKG/usr/share/man/man1
gzip -c $SRC/mpc.1 > $PKG/usr/share/man/man1/mpc.1.gz
if [ -d /usr/share/nnn/plugins ]; then
mkdir -p $PKG/usr/share/nnn/plugins
install -m 0755 $SRC/mpdiradd $PKG/usr/share/nnn/plugins/
fi
}