# Contributor: Sören Tempel # Contributor: Bartłomiej Piotrowski # Maintainer: Bartłomiej Piotrowski pkgname=cmus pkgver=2.9.1 pkgrel=0 pkgdesc="feature-rich ncurses-based music player" url="https://cmus.github.io/" arch="all" license="GPL-2.0-or-later" options="!check" # No test suite makedepends="alsa-lib-dev faad2-dev flac-dev libmad-dev opusfile-dev libogg-dev libvorbis-dev ncurses-dev wavpack-dev ffmpeg-dev linux-headers" subpackages="$pkgname-doc $pkgname-zsh-completion:zshcomp:noarch $pkgname-bash-completion:bashcomp:noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/cmus/cmus/archive/v$pkgver.tar.gz c11-atomics-check.patch " build() { ./configure prefix=/usr make } package() { make DESTDIR="$pkgdir" install for file in AUTHORS README.md; do install -Dm644 "$file" "$pkgdir"/usr/share/doc/$pkgname/ done } bashcomp() { depends="" pkgdesc="Bash completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" install -Dm644 "$builddir"/contrib/$pkgname.bash-completion \ "$subpkgdir"/usr/share/bash-completion/completions/$pkgname } zshcomp() { depends="" pkgdesc="Zsh completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel zsh" install -Dm644 "$builddir"/contrib/_$pkgname \ "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums="b417e58a68c54e97db92b8760a49a3071e81f1594f2144911eed3ccceb68499dedf0699ae313babcb822d71b37add8880dfb2018686cb572e89f8627446d5e05 cmus-2.9.1.tar.gz 97cb5e7340a9baf1d662cd965a169bf63aca28ae165bc0ca1ed81cabfd44b3d3215abbd8e8c42ecdeeaede5ca03271eccb722048d61a894b55f3c7d353e4044e c11-atomics-check.patch"