blob: 01167de5cc50dc89967bbca4773f65b6660e7518 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=sherpa-ncnn
pkgver=2.1.10
pkgrel=1
epoch=
pkgdesc="Real-time speech recognition and voice activity detection (VAD) using next-gen Kaldi with ncnn without Internet connection. "
arch=(x86_64
aarch64
riscv64)
url="https://github.com/k2-fsa/sherpa-ncnn"
license=('Apache-2.0')
groups=()
depends=(
alsa-lib
glibc
gcc-libs
# python
# pybind11
# ncnn
)
makedepends=(
alsa-utils
ccache
cmake
ninja
pkgconf)
checkdepends=()
optdepends=()
provides=(${pkgname} ncnn)
conflicts=(${pkgname} ncnn)
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
noextract=()
sha256sums=('31327d2feba89e5c5796b1bccdb6513bbf059c8ae22defd7646530cc82cfee91')
#validpgpkeys=()
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cmake -DCMAKE_BUILD_TYPE=Release \
-DSHERPA_NCNN_ENABLE_FFMPEG_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-Wno-dev \
-B build \
-G Ninja
# -Wno-deprecated-declarations \
ninja -C build
}
package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname}-${pkgver}/build install
install -dm755 ${pkgdir}/usr/lib/pkgconfig
mv ${pkgdir}/usr/sherpa-ncnn.pc ${pkgdir}/usr/lib/pkgconfig
}
|