diff --git a/srcpkgs/cmus-sndio b/srcpkgs/cmus-sndio new file mode 120000 index 00000000000..c299fe288cf --- /dev/null +++ b/srcpkgs/cmus-sndio @@ -0,0 +1 @@ +cmus \ No newline at end of file diff --git a/srcpkgs/cmus/patches/sndio.diff b/srcpkgs/cmus/patches/sndio.diff new file mode 100644 index 00000000000..5e0a30502df --- /dev/null +++ b/srcpkgs/cmus/patches/sndio.diff @@ -0,0 +1,27 @@ +--- configure.orig 2018-05-02 14:46:09.900968269 +0200 ++++ configure 2018-05-02 14:46:30.935113630 +0200 +@@ -20,12 +20,8 @@ + + check_sndio() + { +- case `uname -s` in +- OpenBSD) +- check_library SNDIO "" "-lsndio" +- return $? +- esac +- return 1 ++ check_library SNDIO "" "-lsndio" ++ return $? + } + + check_compat() +--- sndio.c.orig 2018-05-02 14:52:24.031553732 +0200 ++++ sndio.c 2018-05-02 14:52:32.410611635 +0200 +@@ -20,7 +20,6 @@ + + #include + #include +-#include + #include + #include + #include diff --git a/srcpkgs/cmus/template b/srcpkgs/cmus/template index c4085db5e2b..2fc99535d21 100644 --- a/srcpkgs/cmus/template +++ b/srcpkgs/cmus/template @@ -1,18 +1,18 @@ # Template file for 'cmus' pkgname=cmus version=2.7.1 -revision=3 -short_desc="Small, fast and powerful console music player" -maintainer="Juan RP " -license="GPL-2" -homepage="http://cmus.github.io" -distfiles="https://github.com/cmus/cmus/archive/v${version}.tar.gz" -checksum=8179a7a843d257ddb585f4c65599844bc0e516fe85e97f6f87a7ceade4eb5165 - +revision=4 hostmakedepends="pkg-config" makedepends="ncurses-devel faad2-devel libflac-devel libao-devel libmad-devel libmodplug-devel libmp4v2-devel libmpcdec-devel pulseaudio-devel - opusfile-devel wavpack-devel alsa-lib-devel libvorbis-devel ffmpeg-devel" + opusfile-devel wavpack-devel alsa-lib-devel libvorbis-devel ffmpeg-devel + sndio-devel" +short_desc="Small, fast and powerful console music player" +maintainer="Juan RP " +license="GPL-2.0-or-later" +homepage="https://cmus.github.io" +distfiles="https://github.com/cmus/cmus/archive/v${version}.tar.gz" +checksum=8179a7a843d257ddb585f4c65599844bc0e516fe85e97f6f87a7ceade4eb5165 do_configure() { ./configure prefix=/usr @@ -95,3 +95,10 @@ cmus-wavpack_package() { vmove usr/lib/cmus/ip/wavpack.so } } +cmus-sndio_package() { + short_desc+=" - sndio output plugin" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/lib/cmus/op/sndio.so + } +}