template 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Template file for 'hydrogen'
  2. pkgname=hydrogen
  3. version=1.0.0
  4. revision=1
  5. build_style=cmake
  6. # Our flags has -g already, DEBUG=ON will add -O0
  7. configure_args="-DWANT_DEBUG=OFF"
  8. hostmakedepends="pkg-config qt5-host-tools qt5-devel qt5-tools"
  9. makedepends="libsndfile-devel libarchive-devel liblrdf-devel
  10. pulseaudio-devel jack-devel qt5-devel qt5-xmlpatterns-devel
  11. qt5-tools-devel ladspa-sdk liblo-devel libcppunit-devel"
  12. depends="desktop-file-utils"
  13. short_desc="Advanced drum machine"
  14. maintainer="Orphaned <orphan@voidlinux.org>"
  15. license="GPL-2.0-or-later"
  16. homepage="http://www.hydrogen-music.org/"
  17. distfiles="https://github.com/hydrogen-music/hydrogen/archive/${version}.tar.gz"
  18. checksum=c4eac296a0d20578c274faf7816cf35c16ed43b634d91d2d19686bf9bbfeb970
  19. post_patch() {
  20. vsed -i '/INSTALL/s,"data,"/usr/share/hydrogen/data,' \
  21. data/i18n/CMakeLists.txt
  22. # Liberation
  23. # Change to list with free licensed drumkits only
  24. sed -i -e 's|[www.]*hydrogen-music[.]org/feeds/drumkit_list[.]php|repo.parabola.nu/other/hydrogen-libre/feeds/drumkit_list.php|'\
  25. $(grep -rlI '[www.]*hydrogen-music[.]org/feeds/drumkit_list[.]php')
  26. }
  27. do_check() {
  28. H2_HOME=$wrksrc ./build/src/tests/tests
  29. }
  30. post_install() {
  31. rm -rf $DESTDIR/usr/include
  32. }