File PKGBUILD of Package Musicsystem

# Maintainer: catsfood <webe.info@gmx-topmail.de>

pkgname=musicsystem
pkgver=3.5.6.37
pkgrel=0
pkgdesc="A tool for managing music representations (CDs or files) with the help of a database."
arch=('i686' 'x86_64')
url="https://codeberg.org/catfood/Musicsystem/"
license=('GPL3')
makedepends=('cmake' 'gcc' 'qt5-base' 'qt5-tools' 'sql-worker' 'umlaute-web' 'qtkeychain-qt5' 'desktop-file-utils' 'kwallet' 'libmusicbrainz5')
depends=('qt5-base' 'sql-worker' 'umlaute-web' 'qtkeychain-qt5' 'libmusicbrainz5')
source=("Musicsystem-${pkgver}.tar.xz" "Musicsystem.desktop")
cksums=('SKIP' 'SKIP')
#md5sums=('SKIP' 'SKIP')

build() {
  cd "Musicsystem-${pkgver}"
  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
  make
}

package() {
  cd "Musicsystem-${pkgver}"
  make DESTDIR="$pkgdir" install
  for i in 16 24 32 64 128 256; do
	  install -D -m0644 resources/desktop-icons/musicsystem_${i}x${i}-32.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/musicsystem.png
  done
  desktop-file-install ../Musicsystem.desktop --dir=$pkgdir/usr/share/applications/
}
openSUSE Build Service is sponsored by