diff options
author | Michel Zou | 2018-12-23 13:09:02 +0100 |
---|---|---|
committer | Michel Zou | 2018-12-23 13:09:02 +0100 |
commit | c4ee6f59c88020f6217c2280071ee5467e6666bc (patch) | |
tree | 3801c71055163c67d4cad38a2d94cdc42c8bdc36 /PKGBUILD | |
download | aur-mingw-w64-sphinxbase.tar.gz |
5prealpha
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4272ae7def81 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ + +pkgname=mingw-w64-sphinxbase +pkgver=5prealpha +pkgrel=1 +pkgdesc="Common library for sphinx speech recognition. (mingw-w64)" +url="http://cmusphinx.sourceforge.net/" +arch=('any') +license=('BSD') +depends=('mingw-w64-lapack') +makedepends=('mingw-w64-configure' 'bison') +options=('staticlibs' '!buildflags' '!strip') +source=("http://downloads.sourceforge.net/project/cmusphinx/sphinxbase/${pkgver}/sphinxbase-${pkgver}.tar.gz") +sha256sums=('f72bdb59e50b558bed47cc2105777200d2b246a0f328e913de16a9b22f9a246f') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare () { + cd sphinxbase-$pkgver + sed -i "s|_la_LDFLAGS = -version-info|_la_LDFLAGS = -no-undefined -version-info|g" src/libsphinxbase/Makefile.am src/libsphinxad/Makefile.am + autoreconf -i +} + +build() { + cd sphinxbase-$pkgver + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure --without-python + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir"/sphinxbase-${pkgver}/build-${_arch} + make install DESTDIR="$pkgdir" + rm "$pkgdir"/usr/${_arch}/bin/*.exe + rm -r "$pkgdir"/usr/${_arch}/share + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |