# Contributor: Sören Tempel # Contributor: Peter Bui # Maintainer: Sören Tempel pkgname=ncmpc pkgver=0.34 pkgrel=0 pkgdesc="Ncurses client for the Music Player Daemon (MPD)" url="https://www.musicpd.org/clients/ncmpc" arch="all" license="GPL-2.0-or-later" makedepends="glib-dev libmpdclient-dev meson ncurses-dev py-sphinx boost-dev" subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg" source="https://www.musicpd.org/download/$pkgname/0/$pkgname-$pkgver.tar.xz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" LDFLAGS="$LDFLAGS -lintl" meson \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --buildtype=release \ -Dlirc=disabled \ -Dcurses=ncurses \ -Dlyrics_screen=true \ -Dlyrics_plugin_dir=share/$pkgname/lyrics \ . output ninja -C output } check() { cd "$builddir" ./output/ncmpc --help > /dev/null } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C output install mkdir -p "$pkgdir"/usr/share/$pkgname/lyrics install -m755 lyrics/* \ "$pkgdir"/usr/share/$pkgname/lyrics # Remove HTML documentation rm -rf "$pkgdir"/usr/share/doc/$pkgname/html } sha512sums="e206cc2d61799a97edf1182de4cee1c0fa447bd1fac136dc48670cb624a7efc903c693b0c541fbc00fcb94e055c83be1ca6370386c99131a1b571f47b67c35f4 ncmpc-0.34.tar.xz"