void-packages/srcpkgs/openfst/template

48 lines
1.1 KiB
Bash
Raw Normal View History

2022-10-28 18:44:34 +02:00
# Template file for 'openfst'
pkgname=openfst
version=1.8.2
revision=1
# Limiting archs until resolved why a test fails when natively compiling i686:
# https://github.com/kaldi-asr/kaldi/issues/4808
archs="x86_64* aarch64*"
build_style=gnu-configure
configure_args="
--disable-bin
--disable-dependency-tracking
--enable-compact-fsts
--enable-compress
--enable-const-fsts
--enable-far
--enable-linear-fsts
--enable-lookahead-fsts
--enable-mpdt
--enable-ngram-fsts
--enable-pdt
--enable-shared
--enable-static
--with-pic
"
hostmakedepends="autoconf automake libtool"
short_desc="Finite-state transducers library"
maintainer="John Gebbie <me@johngebbie.com>"
license="Apache-2.0"
homepage="https://www.openfst.org"
distfiles="https://www.openfst.org/twiki/pub/FST/FstDownload/openfst-$version.tar.gz"
checksum=de987bf3624721c5d5ba321af95751898e4f4bb41c8a36e2d64f0627656d8b42
pre_configure() {
autoreconf -fi
}
openfst-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove "usr/lib/fst/*.a"
vmove "usr/lib/fst/*.so"
}
}