Package Details: tony 2.1.1-7

Git Clone URL: https://aur.archlinux.org/tony.git (read-only, click to copy)
Package Base: tony
Description: Tony: a tool for melody transcription
Upstream URL: https://www.sonicvisualiser.org/tony/
Keywords: audio melody visualize
Licenses: GPL2
Submitter: napcode
Maintainer: napcode
Last Packager: napcode
Votes: 2
Popularity: 0.000000
First Submitted: 2019-11-05 08:21 (UTC)
Last Updated: 2022-08-15 19:20 (UTC)

Latest Comments

1 2 Next › Last »

napcode commented on 2022-08-15 19:21 (UTC)

Thanks for the report. Should be fixed.

smradlev commented on 2022-08-15 11:40 (UTC)

I get the following error when compiling:

svcore/data/model/RelativelyFineZoomConstraint.cpp:91:26: error: expected namespace name
    using namespace std::rel_ops;
                    ~~~~~^
svcore/data/model/RelativelyFineZoomConstraint.cpp:92:18: error: invalid operands to binary expression ('ZoomLevel' and 'ZoomLevel')
    if (newLevel > getMaxZoomLevel()) {
        ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../include/c++/12.1.1/bits/stl_iterator.h:465:5: note: candidate template ignored: could not match 'reverse_iterator<_Iterator>' against 'ZoomLevel'
    operator>(const reverse_iterator<_Iterator>& __x,
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../include/c++/12.1.1/bits/stl_iterator.h:510:5: note: candidate template ignored: could not match 'reverse_iterator<_IteratorL>' against 'ZoomLevel'
    operator>(const reverse_iterator<_IteratorL>& __x,
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../include/c++/12.1.1/bits/stl_iterator.h:1703:5: note: candidate template ignored: could not match 'move_iterator<_IteratorL>' against 'ZoomLevel'
    operator>(const move_iterator<_IteratorL>& __x,
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../include/c++/12.1.1/bits/stl_iterator.h:1762:5: note: candidate template ignored: could not match 'move_iterator<_Iterator>' against 'ZoomLevel'
    operator>(const move_iterator<_Iterator>& __x,
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../include/c++/12.1.1/bits/stl_pair.h:676:5: note: candidate template ignored: could not match 'pair<_T1, _T2>' against 'ZoomLevel'
    operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../include/c++/12.1.1/bits/basic_string.h:3728:5: note: candidate template ignored: could not match 'basic_string<_CharT, _Traits, _Alloc>' against 'ZoomLevel'
    operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../include/c++/12.1.1/bits/basic_string.h:3741:5: note: candidate template ignored: could not match 'basic_string<_CharT, _Traits, _Alloc>' against 'ZoomLevel'
    operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../include/c++/12.1.1/bits/basic_string.h:3753:5: note: candidate template ignored: could not match 'const _CharT *' against 'ZoomLevel'
    operator>(const _CharT* __lhs,
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../include/c++/12.1.1/bits/stl_vector.h:2087:5: note: candidate template ignored: could not match 'vector<_Tp, _Alloc>' against 'ZoomLevel'
    operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
    ^
2 errors generated.
make[1]: *** [Makefile.base:4103: o/RelativelyFineZoomConstraint.o] Error 1

BrainDamage commented on 2022-02-19 14:07 (UTC) (edited on 2022-02-19 14:08 (UTC) by BrainDamage)

one small correction that you probably missed:

since the patch files are now in $srcdir too, you should source them as such:

patch svgui/view/Overview.cpp ../Overview.cpp.patch
patch svgui/layer/WaveformLayer.cpp ../WaveformLayer.cpp.patch

or with absolute paths

patch svgui/view/Overview.cpp "$srcdir/Overview.cpp.patch"
patch svgui/layer/WaveformLayer.cpp "$srcdir/WaveformLayer.cpp.patch"

because otherwise you're still trying to source them outside $srcdir

napcode commented on 2022-02-19 13:46 (UTC)

Thx for these tips BrainDamage! PKGBUILD has been updated.

BrainDamage commented on 2022-02-19 11:54 (UTC) (edited on 2022-02-19 13:08 (UTC) by BrainDamage)

patching files should be moved to the prepare() step

moreover, you should include the patch files in the source array, otherwise if $srcdir isn't placed in the path where one fetches the PKGBUILD, it'll fail

example fixed PKGBUILD:

# Maintainer: Mathias Buhr <napcode@apparatus.de>

DLAGENTS=("https::/usr/bin/curl -k -o %o %u")
pkgname=tony
pkgver=2.1.1
pkgrel=6
pkgdesc="Tony: a tool for melody transcription"
arch=('x86_64')
url="https://www.sonicvisualiser.org/tony/"
license=('GPL2')
source=("${pkgname}-${pkgver}.tar.gz::https://code.soundsoftware.ac.uk/attachments/download/2616/${pkgname}-${pkgver}.tar.gz" 'Overview.cpp.patch' 'WaveformLayer.cpp.patch')
depends=('jack' 'libfishsound' 'libid3tag' 'liblo' 'liblrdf' 'libmad' 'liboggz' 'libpulse' 'opusfile' 'portaudio' 'qt5-svg' 'rubberband' 'serd' 'sord' 'hicolor-icon-theme')
makedepends=('boost')
sha256sums=('d79d85be738b00aef7859473f2c0385632d6cb30cd3752e07e952220695de20d'
            'dea76b31d82213d4d9ffdd388f2cf5e0408319cbd48b4e5269eee1489bd9d002'
            'a38ba18245e8dc3e42491e1c0e033689ac489112787d52a9505747a1e2096635')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  patch svgui/view/Overview.cpp ../Overview.cpp.patch
  patch svgui/layer/WaveformLayer.cpp ../WaveformLayer.cpp.patch
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  export INSTALL_ROOT="${pkgdir}/"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  export INSTALL_ROOT="${pkgdir}/"
  make install
}

rcrath commented on 2021-02-15 03:30 (UTC)

Thnx! that worked.

napcode commented on 2021-02-02 19:30 (UTC)

curl fails to verify the certificate of the download URL. I've added a workaround for now.

rcrath commented on 2021-02-01 22:39 (UTC)

getting following error

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
==> ERROR: Failure while downloading http://code.soundsoftware.ac.uk/attachments/download/2765/sonic-lineup-1.1.tar.gz
    Aborting...

workaround: manually download the source tar.gz at http://code.soundsoftware.ac.uk/attachments/download/2765/sonic-lineup-1.1.tar.gz and place in pkgbuild folder before installing and do not clean build or redownload anything.

smw commented on 2020-12-29 23:23 (UTC)

Yes, that works. Thank you! You're awesome.

napcode commented on 2020-12-29 22:31 (UTC)

Thanks. Looks like a qt 5.15 incompatibility. I've added patches. Please try again.