On 2023/01/27 14:23, Alexandre Ratchov wrote:
> Here's a tiny program for X to make sndiod slightly easier to control
> in X. From the README:
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> sndiokeys registers hot-keys in X(7) to control sndiod(8). It can be
> used to replace the X(7) keyboard bells by audible beeps on the
> audio device.
> 
> The default key-bindings are as follows:
> 
> Control+Mod1+plus       increase output level
> Control+Mod1+minus      decrease output level
> Control+Mod1+0          cycle through audio devices.
> 
> Mod1 is the Alt key on most keyboards. Key bindings
> are configurable and multimedia audio keys may be used instead.
> 
> sndiokeys is meant to be started as background process by startx(1) or
> the display manager session startup scripts.  It exits when X session
> terminates.
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> 
> I'm not 100% that ports/x11 is the right place for this program; the
> other candidate is ports/audio.

x11 seems fine to me.

> +COMMENT=     control sndiod with hot-keys and play keyboard bells
> +V=           1.1.2
> +DISTNAME=    sndiokeys-${V}
> +CATEGORIES=  audio x11
> +HOMEPAGE=    https://github.com/ratchov/sndiokeys
> +MAINTAINER=  Alexandre Ratchov <[email protected]>
> +
> +GH_ACCOUNT=  ratchov
> +GH_PROJECT=  sndiokeys
> +GH_TAGNAME=  v${V}

The above lines can be replaced with this, the other variables you've
listed above are set automatically:

----
COMMENT=        control sndiod with hot-keys and play keyboard bells

GH_ACCOUNT=     ratchov
GH_PROJECT=     sndiokeys
GH_TAGNAME=     v1.1.2

CATEGORIES=     audio x11
MAINTAINER=     Alexandre Ratchov <[email protected]>
----

It also needs

MAKE_FLAGS=     CC="${CC}"

Otherwise ok. (FWIW for new ports I'd generally prefer a tar.gz that I
can just untar under mystuff or mystuff/category, a diff is more awkward
to apply).

Reply via email to