volctl: update to 1.0.0.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
--- a/src/ui/x11.rs
|
||||
+++ b/src/ui/x11.rs
|
||||
@@ -1,5 +1,5 @@
|
||||
use std::ffi::CString;
|
||||
-use std::os::raw::c_int;
|
||||
+use std::os::raw::{c_int, c_long};
|
||||
|
||||
use gdk_x11::{
|
||||
X11Display,
|
||||
@@ -160,8 +160,8 @@
|
||||
s1: xlib::Atom,
|
||||
s2: xlib::Atom,
|
||||
) {
|
||||
- const NET_WM_STATE_ADD: i64 = 1;
|
||||
- const NET_WM_STATE_APP: i64 = 1;
|
||||
+ const NET_WM_STATE_ADD: c_long = 1;
|
||||
+ const NET_WM_STATE_APP: c_long = 1;
|
||||
|
||||
unsafe {
|
||||
let c = ctx.xlib();
|
||||
@@ -173,8 +173,8 @@
|
||||
event.client_message.format = 32;
|
||||
let data = event.client_message.data.as_longs_mut();
|
||||
data[0] = NET_WM_STATE_ADD;
|
||||
- data[1] = s1 as i64;
|
||||
- data[2] = s2 as i64;
|
||||
+ data[1] = s1 as c_long;
|
||||
+ data[2] = s2 as c_long;
|
||||
data[3] = NET_WM_STATE_APP;
|
||||
data[4] = 0;
|
||||
|
||||
+14
-9
@@ -1,14 +1,19 @@
|
||||
# Template file for 'volctl'
|
||||
pkgname=volctl
|
||||
version=0.9.3
|
||||
revision=4
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools"
|
||||
depends="python3-gobject gtk+3 desktop-file-utils python3-cairo python3-pulsectl"
|
||||
short_desc="Lightweight volume control for pulseaudio in your systray"
|
||||
version=1.0.0
|
||||
revision=1
|
||||
build_style=cargo
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libglib-devel pango-devel gtk4-devel gtk4-layer-shell-devel pulseaudio-devel"
|
||||
short_desc="Per-application volume control and OSD for Linux desktops"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="GPL-2.0-only"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://buzz.github.io/volctl/"
|
||||
changelog="https://raw.githubusercontent.com/buzz/volctl/refs/heads/main/CHANGELOG.md"
|
||||
distfiles="https://github.com/buzz/volctl/archive/v${version}.tar.gz"
|
||||
checksum=43bea60968c0163be3107a9730671b0c29d1a4477eb9ea468dfc6878f7ac4f88
|
||||
make_check=no # no tests, but check fails with a non-zero return code
|
||||
checksum=b951f533f95ab2dfa7edb491c118c195dc56c10c924c0f9a5c339c8bcd5b83d3
|
||||
|
||||
post_install() {
|
||||
vinstall data/apps.volctl.gschema.xml 644 usr/share/glib-2.0/schemas
|
||||
vinstall data/volctl.desktop 644 usr/share/applications
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user