summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d16f940a5f86a46db21f0c0068accd69113dae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: silverhikari
pkgname=hts-engine-api-git
_pkgname=hts_engine_API
pkgver=1.0.9.r41.g214e26d
pkgrel=1
pkgdesc="api to synthesize speech waveform from HMMs trained by the HMM-based speech synthesis system forked by r9y9"
arch=('x86_64')
url="https://github.com/r9y9/hts_engine_API"
license=('BSD')
depends=('glibc')
makedepends=('git' 'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/r9y9/hts_engine_API')
md5sums=('SKIP')
pkgver() {
	cd "$srcdir/${_pkgname%-git}"
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cmake -B build -S "hts_engine_API/src" \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    make -C build
}

package() {
    cd "${srcdir}/hts_engine_API/src"
    install -Dm755 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	cd "${srcdir}/build"
	make DESTDIR="$pkgdir/" install
}