# Description: MusicBrainz's audio files tagger
# URL: https://picard.musicbrainz.org
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: chromaprint python3-dateutil python3-discid python3-fasteners python3-mutagen python3-pyqt5

name=picard
version=2.8.5
release=1
source=(ftp://ftp.musicbrainz.org/pub/musicbrainz/$name/$name-$version.tar.gz)

build () {
  cd $name-release-$version

  sed -i '/import sip/d' setup.py
  sed -i '/^sip.setapi/d' setup.py

  /usr/bin/python3 setup.py config
  /usr/bin/python3 setup.py build
  /usr/bin/python3 setup.py install --root=$PKG --prefix=/usr

  rm -rf $PKG/usr/share/locale
}
