diff options
author | Marco Pompili | 2015-09-28 16:23:16 +0200 |
---|---|---|
committer | Marco Pompili | 2015-09-28 16:23:16 +0200 |
commit | 58229f1772a413da0a4cda84c4d6a61521d32279 (patch) | |
tree | ff4e110871fcb36657252b5aa6d756e7b0d5a2c3 /PKGBUILD | |
parent | 77d06811f3e6829620c6810725d213cda6772e0a (diff) | |
download | aur-58229f1772a413da0a4cda84c4d6a61521d32279.tar.gz |
Version 5-prealpha
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 17 insertions, 16 deletions
@@ -1,17 +1,18 @@ -# Maintainer: Marco Pompili < marcs DOT pompili AT gmail.com> +# Maintainer: Marco Pompili <marcs DOT pompili AT gmail DOT com> # Contributor: Ben Duffield <bavardage AT archlinux.us> pkgname=pocketsphinx -pkgver=0.8 -pkgrel=5 +pkgver=5prealpha +pkgrel=1 pkgdesc='Lightweight speech recognition engine, specifically tuned for handheld and mobile devices, though it works equally well on the desktop.' arch=('i686' 'x86_64') url='http://cmusphinx.sourceforge.net' -depends=('sphinxbase>=0.8' 'python2' 'gstreamer0.10-base' 'libpulse' 'libsamplerate') -license=('custom') -source=("http://downloads.sourceforge.net/cmusphinx/$pkgname-$pkgver.tar.gz" "cython2_makefile.patch") -md5sums=('9f6fb6277d57fb33d2c49d4184587d26' - '7524229c5d82c49a5c4afabd7f891a65') +depends=('sphinxbase=5prealpha' 'python2' 'gstreamer0.10-base' 'libpulse' 'libsamplerate') +license=('BSD-2') +source=("http://downloads.sourceforge.net/cmusphinx/$pkgname-$pkgver.tar.gz" + "https://raw.githubusercontent.com/cmusphinx/pocketsphinx/master/LICENSE") +md5sums=('e8402e90570935b26745d313c133b376' + '93bfe6b712fe592d844ef581e1e53d47') options=('!libtool') build() { @@ -23,10 +24,6 @@ build() { find -type f -exec sed -i 's_python-config_python2-config_' {} \; find -type f -exec sed -i 's_cython_cython2_' {} \; - #sed -i '/cython/s/$(CPPFLAGS) -I$(sphinxbase)\/python/$(SphinxBase_CFLAGS)/' python/Makefile.am - - patch -Np1 -i ${srcdir}/cython2_makefile.patch - export PYTHON=/usr/bin/python2 export PYTHON_CONFIG=/usr/bin/python2-config @@ -34,14 +31,18 @@ build() { --prefix=/usr \ --with-sphinxbase=auto \ --with-python=/usr/bin/python2 - make + make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install - - install -d "$pkgdir/usr/share/licenses/$pkgname" - install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname" + + install -d -m755 "$pkgdir/usr/share/licenses/$pkgname" + install -D -m644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + libtool --finish "$pkgdir/usr/lib" + libtool --finish "$pkgdir/usr/lib/gstreamer-1.0" + libtool --finish "$pkgdir/usr/lib/python2.7/site-packages/pocketsphinx" } |