diff options
Diffstat (limited to 'libre')
-rw-r--r-- | libre/hydrogen/PKGBUILD | 65 |
1 files changed, 25 insertions, 40 deletions
diff --git a/libre/hydrogen/PKGBUILD b/libre/hydrogen/PKGBUILD index 1ca4bf705..6fd23e27c 100644 --- a/libre/hydrogen/PKGBUILD +++ b/libre/hydrogen/PKGBUILD @@ -1,28 +1,32 @@ -# Maintainer (Arch): David Runge <dave@sleepmap.de> +# Maintainer (Arch): David Runge <dave@archlinux.org> # Contributor (Arch): Rob Til Freedmen <rob.til.freedman@gmail.com> # Maintainer (Arch): Ray Rashif <schiv@archlinux.org> # Contributor (Arch): tobias <tobias@archlinux.org> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> -# Contributor: André Silva <emulatorman@hyperbola.info> +# Contributor (Hyperbola): André Silva <emulatorman@hyperbola.info> # parabola changes and rationale: # - removed drumkits recommendation pkgname=hydrogen -pkgver=1.0.0beta1 -_beta=beta1 -pkgrel=1.par1 -pkgdesc="An advanced drum machine, without nonfree drumkits recommendation" -arch=('x86_64' 'i686' 'armv7h') +pkgver=1.0.0beta2 +_beta=beta2 +pkgrel=1 +pkgrel=.parabola1 +pkgdesc="An advanced drum machine" +pkgdesc+=", without nonfree drumkits recommendation" +arch=('x86_64') +arch+=('i686' 'armv7h') license=('GPL2') groups=('pro-audio') url="http://www.hydrogen-music.org/" -depends=('desktop-file-utils' 'hicolor-icon-theme' 'libarchive' 'liblrdf' -'liblo' 'portaudio' 'portmidi' 'libpulse' 'qt5-xmlpatterns') -makedepends=('cmake' 'cppunit' 'ladspa' 'python2' 'qt5-tools') +depends=('gcc-libs' 'glibc' 'hicolor-icon-theme' 'qt5-base' 'qt5-xmlpatterns') +makedepends=('alsa-lib' 'cmake' 'jack' 'ladspa' 'libarchive' '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/${pkgver/${_beta}/-${_beta}}.tar.gz") -sha512sums=('73963a9f400a4d9f6faca41f5f9af2c4b00ebefb16f394a78fe81f7aacb23acee49633803a484e91705da01cb59b4699133f618fac34f6caa7734bcc67bf4518') +sha512sums=('8712996adbc820909d1d38ff7d45a2a49ec64c15135d5a99b08b93ebd5a0c05139ce78a317c274059a538eb68031f0f42bb9d22988312c2b9f60fa53c539a242') prepare() { # Change to list with free licensed drumkits only @@ -30,20 +34,10 @@ prepare() { $(grep -rlI 'www[.]hydrogen-music[.]org/feeds/drumkit_list[.]php') mv -v "${pkgname}-${pkgver/${_beta}/-${_beta}}" "${pkgname}-${pkgver}" - cd "${pkgname}-${pkgver}" - # fix python2 shebang (only required for building) - sed -e 's/python/python2/' -i data/i18n/stats.py - # fix desktop file icon name - # https://github.com/hydrogen-music/hydrogen/issues/558 - sed -e "s/h2-icon/${pkgname}/" -i "linux/${pkgname}.desktop" - # fix man page location (seemingly fixed on HEAD) - sed -e 's|/man/|/share/man/|' -i CMakeLists.txt - # out-of-tree build - mkdir -v build } build() { - cd "${pkgname}-${pkgver}/build" + cd "${pkgname}-${pkgver}" cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DWANT_DEBUG=OFF \ @@ -52,33 +46,24 @@ build() { -DWANT_PORTAUDIO=ON \ -DWANT_PORTMIDI=ON \ -DWANT_PULSEAUDIO=ON \ - .. - make + -B build \ + -S . + make VERBOSE=1 -C build # update translations ( - cd ../data/i18n + cd data/i18n ./updateTranslations.sh ) } package() { - cd "${pkgname}-${pkgver}/build" - make DESTDIR="$pkgdir" install - - # install desktop file icon to correct location - # https://github.com/hydrogen-music/hydrogen/issues/558 - install -vDm 644 "${pkgdir}/usr/share/${pkgname}/data/img/gray/h2-icon.svg" \ - "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg" - rm -rv "${pkgdir}/usr/share/pixmaps" - rm -rv "${pkgdir}/usr/share/${pkgname}/data/doc" - + depends+=('libarchive.so' 'libasound.so' 'liblo.so' 'libjack.so' 'liblrdf.so' + 'libportaudio.so' 'libportmidi.so' 'libpulse.so' 'libsndfile.so') + cd "${pkgname}-${pkgver}" + make DESTDIR="$pkgdir" install -C build # docs - install -vDm 644 ../{ChangeLog,DEVELOPERS,INSTALL.txt,README.txt} \ + install -vDm 644 {ChangeLog,DEVELOPERS,INSTALL.md,README.md} \ -t "${pkgdir}/usr/share/doc/${pkgname}" - -# # clean up data dir -# # https://github.com/hydrogen-music/hydrogen/issues/559 - rm -v "$pkgdir/usr/share/${pkgname}/data/i18n/"*.{ts,py,sh} } # vim:set ts=2 sw=2 et: |