diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -7,7 +7,11 @@ pkgdesc="Carnegie Mellon University's open source acoustic model trainer." url='http://cmusphinx.sourceforge.net/' arch=('i686' 'x86_64') license=('BSD') +makedepends=('python2') depends=('sphinxbase=5prealpha') +optdepends=('python2: for python support' + 'python2-scipy: for python support' + 'python2-numpy: for python support') source=("http://downloads.sourceforge.net/project/cmusphinx/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz" 'fix_sphinxbase_checking.patch') @@ -18,8 +22,6 @@ prepare() { msg2 "Reconfiguring project for current version of Automake" autoreconf -ivf > /dev/null - - cd .. } build() { @@ -27,9 +29,12 @@ build() { ./configure \ --prefix=/usr \ - --libexecdir="/usr/lib/$pkgname" \ + --libexecdir="/usr/lib" \ --with-sphinxbase=auto make + + cd "python" + python2 setup.py build } package() { @@ -37,9 +42,14 @@ package() { make DESTDIR="${pkgdir}/" install + cd "python" + python2 setup.py install --root=$pkgdir --optimize=1 --skip-build + install -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + rm -rf "${pkgdir}/usr/lib/${pkgname}/python" } md5sums=('762d776c315a8dfbc01923d1712ede6a' '86a5a8d3df8108b213f91df8dba22d85') |