pkgname=cantata pkgver=3.3.0 pkgrel=2 pkgdesc="Graphical (Qt6) client for music player daemon (MPD)" arch=('x86_64') url="https://github.com/cdrummond/cantata" license=('GPL') depends=('qt6-multimedia' 'qt6-svg' 'libmtp' 'libcddb' 'libmusicbrainz' 'mpg123' 'taglib' 'mpd' 'media-player-info' 'udisks2') makedepends=('cmake' 'qt6-tools') source=("https://github.com/nullobsi/cantata/archive/refs/tags/v${pkgver}.tar.gz") #source=("https://github.com/CDrummond/cantata/releases/download/v${pkgver}/cantata-${pkgver}.tar.bz2") md5sums=('b31d0b355f76f4904107fe1339aa9c78') prepare() { cd ${pkgname}-${pkgver} #sed -i -e 's|basic->setChecked(false);|basic->setChecked(true);|' gui/initialsettingswizard.cpp #sed -i -e 's|advanced->setChecked(true);|advanced->setChecked(false);|' gui/initialsettingswizard.cpp } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DENABLE_HTTP_STREAM_PLAYBACK=ON \ -DENABLE_LIBVLC=OFF \ -DENABLE_SIMPLE_MPD_SUPPORT=ON cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }