# Maintainer: willemw # Contributor: totoloco pkgname=pmus-git pkgver=0.42.r401.g318d75a pkgrel=2 pkgdesc="Practical Music Search is a highly configurable, ncurses-based client for MPD" arch=('x86_64') url="https://ambientsound.github.io/pms" license=('GPL') # Optional makedepend: 'pandoc: build man page' makedepends=('cmake' 'git') depends=('libmpdclient') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("$pkgname::git+https://github.com/ambientsound/pms.git#branch=0.42.x") sha256sums=('SKIP') pkgver() { git -C $pkgname describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { CFLAGS=${CFLAGS/-Werror=format-security/} CXXFLAGS=${CXXFLAGS/-Werror=format-security/} CFLAGS=${CFLAGS/-Werror=format-truncation/} CXXFLAGS=${CXXFLAGS/-Werror=format-truncation/} cmake -B build -S $pkgname -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev make -C build } package() { install -dm755 "$pkgdir/usr/share/pms/examples" install -m644 $pkgname/examples/* "$pkgdir/usr/share/pms/examples" make -C build DESTDIR="$pkgdir/" install }