# Description: asynchronous API library for interfacing MPD in the C, C++ & Objective C languages
# URL: https://www.musicpd.org/libs/libmpdclient/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:

name=libmpdclient
version=2.20
release=1
source=(https://www.musicpd.org/download/libmpdclient/2/libmpdclient-$version.tar.xz)

build() {
  cd $name-$version

  meson build --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D documentation=false
  DESTDIR=$PKG ninja -C build -j ${JOBS:-1} install
  rm -r $PKG/usr/share/doc
}
