PKGBUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Maintainer bill-auger <bill-auger@programmer.net>
  2. pkgname=sinsy
  3. pkgver=0.9.6rc0
  4. pkgrel=1
  5. pkgdesc="HMM-based singing voice synthesis system"
  6. arch=(armv7h i686 x86_64)
  7. license=(custom:BSD3)
  8. url=https://www.qtau.de/
  9. depends=(fftw gsl libsndfile sekai)
  10. makedepends=(boost cmake)
  11. source=(${pkgname}-${pkgver}.tar.gz::https://notabug.org/isengaara/${pkgname}/archive/${pkgver}.tar.gz)
  12. sha256sums=('d769778f0730e9d3d343c7de2b9f09c3903afc38a7ac1b54d104976fff16ab82')
  13. prepare()
  14. {
  15. mv "${srcdir}"/${pkgname}{,-${pkgver}}
  16. cd "${srcdir}"/${pkgname}-${pkgver}/
  17. # error: for_each is not a member of std (in src/lib/utau/UtauDB.cpp)
  18. # possibly due to the -std=c++14 in build()
  19. sed -i 's|#include <iostream>|#include <algorithm>\n#include <iostream>|' src/lib/utau/UtauDB.cpp
  20. }
  21. build()
  22. {
  23. mkdir "${srcdir}"/${pkgname}-${pkgver}/build
  24. cd "${srcdir}"/${pkgname}-${pkgver}/build
  25. # error: c++17 does not allow dynamic exception specifications
  26. # (in src/lib/xml/XmlParser.h, src/lib/util/IReadableStream.h)
  27. export CXXFLAGS="-std=c++14"
  28. cmake -DCMAKE_BUILD_TYPE=Release \
  29. -DBUILD_SHARED_LIBS=ON \
  30. -DCMAKE_INSTALL_PREFIX=/usr \
  31. -DCMAKE_INSTALL_LIBDIR=lib ..
  32. make
  33. }
  34. package()
  35. {
  36. cd "${srcdir}"/${pkgname}-${pkgver}/build
  37. make DESTDIR="${pkgdir}" install
  38. install -Dm644 ../src/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
  39. }