PKGBUILDs/pocketsphinx/default/PKGBUILD

37 lines
981 B
Bash
Raw Permalink Normal View History

# Maintainer: Martchus <martchus@gmx.net>
2023-04-29 16:26:29 +02:00
# Contributor: éclairevoyant
# Contributor: Marco Pompili <aur AT emarcs DOT org>
2016-05-10 17:20:11 +02:00
# Contributor: Ben Duffield <bavardage AT archlinux.us>
pkgname=pocketsphinx
2024-02-21 11:38:56 +01:00
pkgver=5.0.3
2023-08-01 15:42:54 +02:00
pkgrel=1
pkgdesc='A small speech recognizer'
2016-05-10 17:20:11 +02:00
arch=('i686' 'x86_64')
url='https://cmusphinx.github.io'
2023-04-29 16:27:43 +02:00
license=('BSD' 'MIT')
makedepends=('cmake' 'ninja' 'gst-plugins-base-libs')
optdepends=('gst-plugins-base-libs: GStreamer plugin')
2023-08-01 15:42:54 +02:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/cmusphinx/pocketsphinx/archive/refs/tags/v$pkgver.tar.gz")
2024-02-21 11:38:56 +01:00
sha256sums=('5d952cb1c22e0a51ed1fafc36871612df38f145df64fa017fdc8074532ec007f')
2023-04-29 18:15:08 +02:00
prepare() {
cd $pkgname-$pkgver
}
2016-05-10 17:20:11 +02:00
build() {
2023-04-29 16:27:06 +02:00
cd $pkgname-$pkgver
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DBUILD_GSTREAMER=ON
cmake --build build
2016-05-10 17:20:11 +02:00
}
package() {
2023-04-29 16:27:06 +02:00
cd $pkgname-$pkgver
2016-05-10 17:20:11 +02:00
2023-04-29 16:29:50 +02:00
DESTDIR="$pkgdir" cmake --install build
2016-05-10 17:20:11 +02:00
2023-04-29 16:29:50 +02:00
install -D -m644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
2016-05-10 17:20:11 +02:00
}