summaryrefslogtreecommitdiff
path: root/pcr-testing/sinsy/PKGBUILD
blob: 35eb3e51d04531950e6187f865c47a3690b532a1 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
}