Files
omarchy-pkgs/pkgbuilds/omaspeak-bin/PKGBUILD
T
b836c23037 Declare the licenses of the bundled audio.cpp provider
Each package ships libaudiocpp, which upstream's own third-party notices describe as Apache-2.0 with BSD-3-Clause PocketFFT-derived code retained in it, and installs those texts under /usr/share/licenses. A license array of MIT alone describes only the project's own source, so pacman -Qi misreports what the package contains.

Co-Authored-By: GPT-6 Astra XHigh <noreply@openai.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 11:10:50 -05:00

77 lines
2.6 KiB
Bash

# Maintainer: Jacob Vincent Mink
pkgname=omaspeak-bin
_pkgname=${pkgname%-bin}
pkgver=0.0.1
_upstream_ver=0.0.1
pkgrel=1
pkgdesc='Local-first text-to-speech application and daemon (pre-built binary)'
arch=('x86_64' 'aarch64')
url='https://github.com/jacob-vincent-mink/omaspeak'
license=('MIT' 'Apache-2.0' 'BSD-3-Clause')
depends=(
'alsa-utils'
'gcc-libs'
'glibc'
)
optdepends=(
'pipewire-audio: audio playback through pw-play'
'openvino: Intel CPU acceleration runtime'
'openvino-intel-gpu-plugin: Intel GPU device support for OpenVINO'
'openvino-intel-npu-plugin: Intel NPU device support for OpenVINO'
'cuda: NVIDIA CUDA libraries for an external CUDA runtime bundle'
'cudnn: NVIDIA neural-network libraries for an external CUDA runtime bundle'
)
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
install="${pkgname}.install"
options=('!strip' '!debug')
source_x86_64=("${_pkgname}-${_upstream_ver}-linux-x86_64.tar.xz::${url}/releases/download/v${_upstream_ver}/${_pkgname}-${_upstream_ver}-linux-x86_64.tar.xz")
source_aarch64=("${_pkgname}-${_upstream_ver}-linux-aarch64.tar.xz::${url}/releases/download/v${_upstream_ver}/${_pkgname}-${_upstream_ver}-linux-aarch64.tar.xz")
sha256sums_x86_64=('9e318960fb15fdf955efbb8dda9bc8eb2b9d0932a9acd9e31b85bf3492ca78ea')
sha256sums_aarch64=('8a0d7728d0b6d3f447ab7a616389fc8c54a0617f14922b33593ca60b425deb8d')
package() {
local release_root="${srcdir}/${_pkgname}-${_upstream_ver}-linux-${CARCH}"
install -Dm755 "${release_root}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm755 \
"${release_root}/lib/libaudiocpp.so.0.1.0" \
"${pkgdir}/usr/lib/${_pkgname}/libaudiocpp.so.0.1.0"
ln -s libaudiocpp.so.0.1.0 \
"${pkgdir}/usr/lib/${_pkgname}/libaudiocpp.so.0"
ln -s libaudiocpp.so.0 \
"${pkgdir}/usr/lib/${_pkgname}/libaudiocpp.so"
install -Dm644 \
"${release_root}/packaging/systemd/${_pkgname}.service" \
"${pkgdir}/usr/lib/systemd/user/${_pkgname}.service"
local document
for document in \
README.md \
INSTALL.md \
ACCELERATOR_SETUP.md \
CHANGELOG.md \
RELEASE_NOTES.md \
DEMO.md \
RUNTIME.md \
config.example.toml; do
install -Dm644 \
"${release_root}/${document}" \
"${pkgdir}/usr/share/doc/${pkgname}/${document}"
done
cp -r \
"${release_root}/assets" \
"${release_root}/benchmarks" \
"${pkgdir}/usr/share/doc/${pkgname}/"
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
cp -r \
"${release_root}/licenses/." \
"${pkgdir}/usr/share/licenses/${pkgname}/"
}