# Maintainer: zaps166 pkgname=qmplay2 pkgver=19.12.19 pkgrel=1 pkgdesc='QMPlay2 is a video and audio player which can play most formats and codecs' arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64') url='https://github.com/zaps166/QMPlay2' license=('LGPL') depends=('qt5-base' 'qt5-svg' 'qt5-declarative' 'qt5-x11extras' 'ffmpeg' 'libass' 'libgl' 'libva' 'libxv' 'alsa-lib' 'libcdio' 'taglib' 'libcddb' 'libpulse' 'libgme' 'libsidplayfp') optdepends=('pulseaudio: PulseAudio support' 'game_music_emu-kode54-git: Better chiptune support (less bugs in sound, AUR package)') makedepends=('make' 'gcc' 'pkg-config' 'qt5-tools' 'cmake' 'fakeroot') source=("https://github.com/zaps166/QMPlay2/releases/download/${pkgver}/QMPlay2-src-${pkgver}.tar.xz") sha1sums=(fa902a014159e72ec53558edc52e8290a79cf027) prepare() { mkdir -p $srcdir/QMPlay2-build } build() { # Uncomment below line if you don't want to have 'libsidplayfp' dependency and remove it from 'depends' list #USE_SIDPLAYFP='-DUSE_CHIPTUNE_SID=OFF' cd $srcdir/QMPlay2-build cmake ../QMPlay2-src-$pkgver -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DUSE_LINK_TIME_OPTIMIZATION=ON -DUSE_GIT_VERSION=OFF $USE_SIDPLAYFP time make } package() { cd $srcdir/QMPlay2-build make DESTDIR=$pkgdir install }