29 lines
874 B
Plaintext
29 lines
874 B
Plaintext
# Description: ncurses Pulseaudio mixer
|
|
# URL: https://github.com/fulhax/ncpamixer
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: pulseaudio
|
|
# Optional: git pandoc-bin
|
|
|
|
name=ncpamixer
|
|
version=1.3.7
|
|
release=1
|
|
source=(https://github.com/fulhax/ncpamixer/archive/$version/$name-$version.tar.gz
|
|
$name.1)
|
|
|
|
build() {
|
|
prt-get isinst git pandoc-bin || PKGMK_NCPAMIXER+=' -D BUILD_MANPAGES=OFF'
|
|
|
|
sed -i "/-Werror/d" $name-$version/src/CMakeLists.txt
|
|
|
|
cmake -S $name-$version/src -B build -G Ninja $PKGMK_NCPAMIXER \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNCURSES_INTERNALS" \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-Wno-dev
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
prt-get isinst pandoc-bin || install -Dm644 $SRC/$name.1 $PKG/usr/share/man/man1/$name.1
|
|
}
|