[arch-commits] Commit in hydrogen/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Mon Mar 23 14:53:47 UTC 2020
Date: Monday, March 23, 2020 @ 14:53:46
Author: dvzrv
Revision: 603727
upgpkg: hydrogen 1.0.0beta2-1: Upgrading to 1.0.0beta2.
Removing all (now not required) fixes and patches.
Moving all sodeps to package() and adding the respective packages
to makedepends. Minor cleanups.
Modified:
hydrogen/trunk/PKGBUILD
----------+
PKGBUILD | 44 +++++++++++---------------------------------
1 file changed, 11 insertions(+), 33 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-23 14:42:22 UTC (rev 603726)
+++ PKGBUILD 2020-03-23 14:53:46 UTC (rev 603727)
@@ -4,36 +4,24 @@
# Contributor: tobias <tobias at archlinux.org>
pkgname=hydrogen
-pkgver=1.0.0beta1
-_beta=beta1
-pkgrel=2
+pkgver=1.0.0beta2
+_beta=beta2
+pkgrel=1
pkgdesc="An advanced drum machine"
arch=('x86_64')
license=('GPL2')
groups=('pro-audio')
url="http://www.hydrogen-music.org/"
-depends=('alsa-lib' 'gcc-libs' 'glibc' 'hicolor-icon-theme' 'libarchive.so'
-'libjack.so' 'liblrdf.so' 'liblo.so' 'libportaudio.so' 'libportmidi.so'
-'libpulse' 'libsndfile' 'qt5-base' 'qt5-xmlpatterns')
-makedepends=('cmake' 'ladspa' 'python' '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"
- "${pkgname}-1.0.0beta1-python2.patch::https://github.com/hydrogen-music/hydrogen/commit/f57b76040cd5ada2fa494a73ef1f9d4fcec1afcd.patch")
-sha512sums=('73963a9f400a4d9f6faca41f5f9af2c4b00ebefb16f394a78fe81f7aacb23acee49633803a484e91705da01cb59b4699133f618fac34f6caa7734bcc67bf4518'
- '9343531248b741bdb99e3db3d8f5ea76f8747c13314fcebb0fd934c6d1e33928f35da374909fd84b896f55d78c60caba662b573f97abbd762dfd90f41a2d10c0')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}-music/${pkgname}/archive/${pkgver/${_beta}/-${_beta}}.tar.gz")
+sha512sums=('e87b57fb52a1ff00ef0d011321ad721902df5d1d31f3136d702498b9b5b3580cc7df43c0d7f4cecf55fd96957caf9c44a400eddb3bef07d7fe2cfda85ca1e00e')
prepare() {
mv -v "${pkgname}-${pkgver/${_beta}/-${_beta}}" "${pkgname}-${pkgver}"
- cd "${pkgname}-${pkgver}"
- # make i18n script python3 compatible:
- # https://github.com/hydrogen-music/hydrogen/issues/730
- patch -Np1 -i "../${pkgname}-1.0.0beta1-python2.patch"
- # 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
}
build() {
@@ -57,23 +45,13 @@
}
package() {
+ 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
-
- # 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"
-
# 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:
More information about the arch-commits
mailing list