1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
7 pkgdesc='Movie player based on mpv'
9 url="https://github.com/linuxdeepin/deepin-movie-reborn"
11 depends=('deepin-qt5integration' 'ffmpegthumbnailer' 'libxtst' 'mpv' 'qt5-multimedia'
12 'qtdbusextended' 'qtmpris')
13 makedepends=('cmake' 'gtest' 'ninja' 'qt5-tools')
14 groups=('deepin-extra')
16 source=("https://github.com/linuxdeepin/deepin-movie-reborn/archive/$pkgver/$pkgname-$pkgver.tar.gz")
17 sha512sums=('f3ec17b25b91751931d2aaf101f412cfc36ee39e7b6bf62db89447056c76525bdb3cbb2f4b16a1d359e01c64b56088c4a23ae75c7a4b33caab043632feb93417')
20 cd deepin-movie-reborn-$pkgver
21 sed -i '/avformat.h>/i #include <libavcodec/avcodec.h>' src/libdmr/playlist_model.cpp
25 cd deepin-movie-reborn-$pkgver
26 export CXXFLAGS+=' -fpermissive'
27 cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DVERSION=$pkgver .
32 cd deepin-movie-reborn-$pkgver
33 DESTDIR="$pkgdir" ninja install