pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sowm, patch to use amixer only on Linux



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Thu Apr 9 07:56:52 2020 +0200
Changeset:	1e91cb7c741c598c3588653e7ffe7b542649eacc

Modified Files:
	sowm/Makefile
	sowm/distinfo
Added Files:
	sowm/patches/patch-config.def.h

Log Message:
sowm, patch to use amixer only on Linux

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1e91cb7c741c598c3588653e7ffe7b542649eacc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 sowm/Makefile                   |  2 +-
 sowm/distinfo                   |  1 +
 sowm/patches/patch-config.def.h | 22 ++++++++++++++++++++++
 3 files changed, 24 insertions(+), 1 deletion(-)

diffs:
diff --git a/sowm/Makefile b/sowm/Makefile
index f2d3b7f424..dd95ecfcd6 100644
--- a/sowm/Makefile
+++ b/sowm/Makefile
@@ -5,7 +5,7 @@ CATEGORIES=	wm
 MASTER_SITES=	${MASTER_SITE_GITHUB:=dylanaraps/}
 GITHUB_TAG=	${PKGVERSION_NOREV}
 
-MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+MAINTAINER=	voidpin%protonmail.com@localhost
 HOMEPAGE=	https://github.com/dylanaraps/sowm/
 COMMENT=	Itsy bitsy floating window manager
 LICENSE=	mit
diff --git a/sowm/distinfo b/sowm/distinfo
index cd5d927c8c..82b05b9fec 100644
--- a/sowm/distinfo
+++ b/sowm/distinfo
@@ -4,3 +4,4 @@ SHA1 (sowm-1.6.tar.gz) = 87bd3f40ae70364c15f8e36c78c95e146d1423ac
 RMD160 (sowm-1.6.tar.gz) = f1f5ec85623335214e9e89fc2ce2e48a74679415
 SHA512 (sowm-1.6.tar.gz) = 36f0818d769c224c727713d862201dee7478a04e99c4b0ea0e48a1e1a12a033f704962351ec39df901c196a0ab75fd07b0551b6177f3bb51639dc1ea362b0c16
 Size (sowm-1.6.tar.gz) = 5916 bytes
+SHA1 (patch-config.def.h) = e9281c51708d4ff341fdb552c69ea29c718c5143
diff --git a/sowm/patches/patch-config.def.h b/sowm/patches/patch-config.def.h
new file mode 100644
index 0000000000..8c2a55f586
--- /dev/null
+++ b/sowm/patches/patch-config.def.h
@@ -0,0 +1,22 @@
+$NetBSD$
+
+Use amixer only on Linux
+
+--- config.def.h.orig	2020-02-21 16:08:47.000000000 +0000
++++ config.def.h
+@@ -8,9 +8,15 @@ const char* term[]    = {"st",          
+ const char* scrot[]   = {"scr",            0};
+ const char* briup[]   = {"bri", "10", "+", 0};
+ const char* bridown[] = {"bri", "10", "-", 0};
++#if defined(__Linux__)
+ const char* voldown[] = {"amixer", "sset", "Master", "5%-",         0};
+ const char* volup[]   = {"amixer", "sset", "Master", "5%+",         0};
+ const char* volmute[] = {"amixer", "sset", "Master", "toggle",      0};
++#elif (__NetBSD__)
++const char* volup[] = {"mixerctl", "-w", "outputs.master+=5" };
++const char* voldown[] = {"mixerctl", "-w", "outputs.master-=5" };
++const char* volmute[] = {"mixerctl", "-w", "outputs.master=0" };
++#endif
+ const char* colors[]  = {"bud", "/home/goldie/Pictures/Wallpapers", 0};
+ 
+ static struct key keys[] = {


Home | Main Index | Thread Index | Old Index