# Maintainer bill-auger <bill-auger@programmer.net>


# rationale for VCS package:
# - the latest release source-ball (from 2015) does not compile


pkgname=hts_engine_api-git
pkgver=0.0.0.vcs
pkgrel=1
pkgdesc="Synthesize speech waveform from HTS-trained HMMs"
arch=(armv7h i686 x86_64)
license=(custom:BSD3)
url=http://hts-engine.sourceforge.net/
makedepends=(cmake git)
source=(git+https://github.com/r9y9/hts_engine_API.git)
sha256sums=('SKIP')


build()
{
  mkdir "${srcdir}"/hts_engine_API/src/build
  cd    "${srcdir}"/hts_engine_API/src/build

  cmake -DCMAKE_BUILD_TYPE=Release  \
        -DBUILD_SHARED_LIBS=ON      \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib  ..
  make
}

package()
{
  cd "${srcdir}"/hts_engine_API/src/build

  make DESTDIR="${pkgdir}" install

  install -Dm644 ../COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
}
