PKGBUILDs/pocketsphinx/default/PKGBUILD

37 lines
981 B
Bash
Raw 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
2023-08-01 15:42:54 +02:00
pkgver=5.0.2
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")
sha256sums=('c2c58aa702195c46c44575fb9ed5790e749ab647df648b4557cc963aeac638b2')
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
}