havoc: add recipe for 0.2.0 (#7241)

This commit is contained in:
augiedoggie
2022-10-01 22:23:34 -06:00
committed by GitHub
parent 313759f90b
commit bc59069db0

View File

@@ -0,0 +1,49 @@
SUMMARY="A command line tool to control audio volume"
DESCRIPTION="Haiku Advanced Volume Control(havoc) is a small command line tool to control the \
system volume. It is intended to be used with the standard 'Shortcuts' application so that \
keyboard shortcuts can be set to toggle the mute and adjust the volume incrementally. System \
notifications with the current volume can also be displayed."
HOMEPAGE="https://github.com/augiedoggie/havoc"
COPYRIGHT="2021-2022 Chris Roberts"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/augiedoggie/havoc/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="f21a8a5edc74e91ad5a0323e45ce7ee679db67eaa7ba257723db324f2487a103"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="!x86"
PROVIDES="
havoc = $portVersion
cmd:havoc
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++
cmd:make
"
BUILD()
{
cmake \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$prefix \
.
make -C build $jobArgs
}
INSTALL()
{
make -C build install
mkdir -p $docDir
cp -f ReadMe.md $docDir
}