* Remove no longer required base package * Do not include Python module anymore; it is not built by default by the upsteam build script anymore (only if CMake variable SKBUILD is set) and thus supposedly designed to be distributed in a separate package; this makes also sense at it avoids rebuilding the C library on every minor Python release * Rebuild subtitlecomposer; however, at this point this means its speech plugin will not be available anymore as even the detection of the library does not work: ``` -- Could NOT find PocketSphinx (missing: POCKETSPHINX_INCLUDE_DIR) (found suitable version "5.0.0", minimum required is "5") -- Have NOT Found PocketSphinx - Speech plugin will not be built ```
32 lines
1002 B
Bash
32 lines
1002 B
Bash
# Maintainer: Martchus <martchus@gmx.net>
|
|
# Contributor: Marco Pompili <aur AT emarcs DOT org>
|
|
# Contributor: Ben Duffield <bavardage AT archlinux.us>
|
|
|
|
pkgname=pocketsphinx
|
|
pkgver=5.0.0
|
|
pkgrel=1
|
|
pkgdesc='A small speech recognizer'
|
|
arch=('i686' 'x86_64')
|
|
url='https://cmusphinx.github.io'
|
|
license=('custom')
|
|
makedepends=('cmake' 'ninja' 'gst-plugins-base-libs')
|
|
optdepends=('gst-plugins-base-libs: GStreamer plugin')
|
|
source=("https://github.com/cmusphinx/pocketsphinx/archive/refs/tags/v$pkgver.tar.gz")
|
|
sha256sums=('78ffe5b60b6981b08667435dd26c5a179b612b8ca372bd9c23c896a8b2239a20')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DBUILD_GSTREAMER=ON
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
DESTDIR=${pkgdir} cmake --build build --target install
|
|
|
|
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -D -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|