cmus: add sndio output plugin
This commit is contained in:
parent
c7510c793d
commit
487ffacefe
3 changed files with 44 additions and 9 deletions
1
srcpkgs/cmus-sndio
Symbolic link
1
srcpkgs/cmus-sndio
Symbolic link
|
@ -0,0 +1 @@
|
|||
cmus
|
27
srcpkgs/cmus/patches/sndio.diff
Normal file
27
srcpkgs/cmus/patches/sndio.diff
Normal file
|
@ -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 <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
-#include <sys/audioio.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
|
@ -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 <xtraeme@voidlinux.eu>"
|
||||
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 <xtraeme@voidlinux.eu>"
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue