diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2022-03-16 08:10:40 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2022-03-16 08:25:27 -0400 |
commit | 8c3b7f81c8f3a78fefa9092d9c146646b158a1d7 (patch) | |
tree | 1115710dd48c6ac080143d2027a78ddbd8597824 /pcr-testing/sinsy | |
parent | 0cc59a5579e8b1c01b1bdf0e39fa96fc7c516d3c (diff) | |
download | abslibre-8c3b7f81c8f3a78fefa9092d9c146646b158a1d7.tar.gz abslibre-8c3b7f81c8f3a78fefa9092d9c146646b158a1d7.tar.bz2 abslibre-8c3b7f81c8f3a78fefa9092d9c146646b158a1d7.zip |
[qtau][sinsy][sekai][hts_engine_api-git]: add package and deps
Diffstat (limited to 'pcr-testing/sinsy')
-rw-r--r-- | pcr-testing/sinsy/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pcr-testing/sinsy/PKGBUILD b/pcr-testing/sinsy/PKGBUILD new file mode 100644 index 000000000..35eb3e51d --- /dev/null +++ b/pcr-testing/sinsy/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer bill-auger <bill-auger@programmer.net> + + +pkgname=sinsy +pkgver=0.9.6rc0 +pkgrel=1 +pkgdesc="HMM-based singing voice synthesis system" +arch=(armv7h i686 x86_64) +license=(custom:BSD3) +url=https://www.qtau.de/ +depends=(fftw gsl libsndfile sekai) +makedepends=(boost cmake) +source=(${pkgname}-${pkgver}.tar.gz::https://notabug.org/isengaara/${pkgname}/archive/${pkgver}.tar.gz) +sha256sums=('d769778f0730e9d3d343c7de2b9f09c3903afc38a7ac1b54d104976fff16ab82') + + +prepare() +{ + mv "${srcdir}"/${pkgname}{,-${pkgver}} + cd "${srcdir}"/${pkgname}-${pkgver}/ + + # error: for_each is not a member of std (in src/lib/utau/UtauDB.cpp) + # possibly due to the -std=c++14 in build() + sed -i 's|#include <iostream>|#include <algorithm>\n#include <iostream>|' src/lib/utau/UtauDB.cpp +} + +build() +{ + mkdir "${srcdir}"/${pkgname}-${pkgver}/build + cd "${srcdir}"/${pkgname}-${pkgver}/build + + # error: c++17 does not allow dynamic exception specifications + # (in src/lib/xml/XmlParser.h, src/lib/util/IReadableStream.h) + export CXXFLAGS="-std=c++14" + + cmake -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib .. + make +} + +package() +{ + cd "${srcdir}"/${pkgname}-${pkgver}/build + + make DESTDIR="${pkgdir}" install + + install -Dm644 ../src/COPYING "${pkgdir}"/usr/share/licences/${pkgname}/COPYING +} |