[arch-commits] Commit in hydrogen/trunk (2 files)

David Runge dvzrv at archlinux.org
Mon Aug 3 19:53:23 UTC 2020


    Date: Monday, August 3, 2020 @ 19:53:23
  Author: dvzrv
Revision: 668452

upgpkg: hydrogen 1.0.0-1: Upgrade to 1.0.0.

Add liblo for new-session-manager support.
Add new-session-manager as optdepends.
Add patch for installing i18n files to the correct location (and upstreaming it).

Added:
  hydrogen/trunk/hydrogen-1.0.0-i18n_install_path.patch
Modified:
  hydrogen/trunk/PKGBUILD

----------------------------------------+
 PKGBUILD                               |   22 ++++++++++++++--------
 hydrogen-1.0.0-i18n_install_path.patch |    9 +++++++++
 2 files changed, 23 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-03 19:25:19 UTC (rev 668451)
+++ PKGBUILD	2020-08-03 19:53:23 UTC (rev 668452)
@@ -3,9 +3,8 @@
 # Contributor: Ray Rashif <schiv at archlinux.org>
 # Contributor: tobias <tobias at archlinux.org>
 
-_ver=1.0.0-rc1
 pkgname=hydrogen
-pkgver=${_ver/-/}
+pkgver=1.0.0
 pkgrel=1
 pkgdesc="An advanced drum machine"
 arch=('x86_64')
@@ -13,15 +12,22 @@
 groups=('pro-audio')
 url="http://www.hydrogen-music.org/"
 depends=('gcc-libs' 'glibc' 'hicolor-icon-theme' 'qt5-base' 'qt5-xmlpatterns')
-makedepends=('alsa-lib' 'cmake' 'jack' 'ladspa' 'libarchive' 'liblrdf'
+makedepends=('alsa-lib' 'cmake' 'jack' 'ladspa' 'libarchive' 'liblo' 'liblrdf'
 'libpulse' 'libsndfile' 'portaudio' 'portmidi' 'python' 'qt5-tools')
 checkdepends=('cppunit')
-optdepends=('rubberband: Time stretch samples')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}-music/${pkgname}/archive/${_ver}.tar.gz")
-sha512sums=('1615956ed02cfc0553ff09b651f76cb56dd35ec314a535fcb97f9658eebb6eee3eba884779b097767b404c82d6e074e2df342bdaabce77a47ad8278bd18be1be')
+optdepends=('new-session-manager: for session management')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}-music/${pkgname}/archive/${pkgver}.tar.gz"
+        "${pkgname}-1.0.0-i18n_install_path.patch")
+sha512sums=('2c5d8e5c6e3a64ce6c11fcfe056719e36618c4e3562513a20545562e5704fdd67bde033ebaf452f497e196186249dd5e0772f8b329a67b4a25f3d9457d3a94ed'
+            'b81ea8b1c478df8647a33884627912b70ae183bb445a32d8eefb628da013e1a480b2027688c1edc6f131a6e7a75880c6a375df36e93459d86b07d223043fd15f')
+b2sums=('154bef75422ef419f67022e6947bcba5a2a428cfd34463ef65cd021d9503e55d6898c846472ae1c4fc156db031fbfa78e73f8f0b4a55af9e6b1632888d30ff23'
+        'd9af01f946a5d4a5e786560cd95d004a5ecb4902e922ee814ef65a484cf2fd6b4e9568d23cdb9f85231e7572624c4a53096dd46494e47dd33248be8c06bfc605')
 
 prepare() {
-  mv -v "${pkgname}-${_ver}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  # fix i18n installation destination
+  # https://github.com/hydrogen-music/hydrogen/pull/912
+  patch -Np1 -i "../${pkgname}-1.0.0-i18n_install_path.patch"
 }
 
 build() {
@@ -47,7 +53,7 @@
 
 package() {
   depends+=('libarchive.so' 'libasound.so' 'liblo.so' 'libjack.so' 'liblrdf.so'
-  'libportaudio.so' 'libportmidi.so' 'libpulse.so' 'libsndfile.so')
+  'liblo.so' 'libportaudio.so' 'libportmidi.so' 'libpulse.so' 'libsndfile.so')
   cd "${pkgname}-${pkgver}"
   make DESTDIR="$pkgdir" install -C build
   # docs

Added: hydrogen-1.0.0-i18n_install_path.patch
===================================================================
--- hydrogen-1.0.0-i18n_install_path.patch	                        (rev 0)
+++ hydrogen-1.0.0-i18n_install_path.patch	2020-08-03 19:53:23 UTC (rev 668452)
@@ -0,0 +1,9 @@
+diff -ruN a/data/i18n/CMakeLists.txt b/data/i18n/CMakeLists.txt
+--- a/data/i18n/CMakeLists.txt	2020-08-03 21:05:33.000000000 +0200
++++ b/data/i18n/CMakeLists.txt	2020-08-03 21:37:38.195846093 +0200
+@@ -5,4 +5,4 @@
+ 
+ QT5_ADD_TRANSLATION(QM_FILES ${TS_FILES})
+ ADD_CUSTOM_TARGET(translations ALL DEPENDS ${QM_FILES})
+-INSTALL(FILES ${QM_FILES} DESTINATION "data/i18n")
++INSTALL(FILES ${QM_FILES} DESTINATION "${H2_SYS_PATH}/data/i18n")


More information about the arch-commits mailing list