Avoid reconfiguring pocketsphinx twice
This commit is contained in:
parent
47ba04205c
commit
4059648ea8
|
@ -1,10 +1,10 @@
|
|||
# Maintainer: Marco Pompili <marcs DOT pompili AT gmail DOT com>
|
||||
# Maintainer: Marco Pompili <aur AT emarcs DOT org>
|
||||
# Contributor: Ben Duffield <bavardage AT archlinux.us>
|
||||
# Contributor: Martchus <martchus@gmx.net>
|
||||
|
||||
pkgname=pocketsphinx
|
||||
pkgver=5prealpha
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
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'
|
||||
|
@ -13,21 +13,20 @@ makedepends=('swig' 'python2' 'python')
|
|||
depends=('sphinxbase=5prealpha' 'gstreamer0.10-base' 'gst-plugins-base-libs')
|
||||
source=("http://downloads.sourceforge.net/cmusphinx/$pkgname-$pkgver.tar.gz"
|
||||
"https://raw.githubusercontent.com/cmusphinx/pocketsphinx/master/LICENSE")
|
||||
md5sums=('2c4fb3a1318bb2470997ab7eb98ef69a'
|
||||
'98034d99abfdcf2712d3a07e6df00b21')
|
||||
sha256sums=('ad9f5f5c5ce79ff87b63d527f8f4d3e2f54c0c1da53793895991a8849ca47701'
|
||||
'49181202f2b991d25f6cac8cd1705994494b9600d4311794ecbb9fcf8b188aef')
|
||||
options=('!libtool')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
msg2 "Reconfiguring project for current version of Automake"
|
||||
autoreconf -ivf > /dev/null
|
||||
|
||||
cd ..
|
||||
|
||||
cp -R "$pkgname-$pkgver" "$pkgname-$pkgver-py2"
|
||||
cp -R "$pkgname-$pkgver" "$pkgname-$pkgver-py3"
|
||||
|
||||
msg2 "Reconfiguring project for current Automake"
|
||||
cd "$pkgname-$pkgver-py3"
|
||||
export PYTHON=/usr/bin/python
|
||||
autoreconf -ivf > /dev/null
|
||||
cd "../$pkgname-$pkgver-py2"
|
||||
export PYTHON=/usr/bin/python2
|
||||
autoreconf -ivf > /dev/null
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -40,22 +39,22 @@ build() {
|
|||
|
||||
|
||||
msg2 "Building python2 environment"
|
||||
cd "../$pkgname-$pkgver-py2"
|
||||
export PYTHON=/usr/bin/python2
|
||||
cd "../$pkgname-$pkgver-py2"
|
||||
export PYTHON=/usr/bin/python2
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver-py3"
|
||||
cd "$pkgname-$pkgver-py3"
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
cd "../$pkgname-$pkgver-py2/swig"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -d -m755 "$pkgdir/usr/share/licenses/$pkgname"
|
||||
install -D -m644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue