archrelease: copy trunk to community-any
[ArchLinux/community.git] / deepin-movie / repos / community-x86_64 / PKGBUILD
blobe23ba7c4cb96f54cbe920f3505fb563b54d80226
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=deepin-movie
4 epoch=1
5 pkgver=5.10.14
6 pkgrel=1
7 pkgdesc='Movie player based on mpv'
8 arch=('x86_64')
9 url="https://github.com/linuxdeepin/deepin-movie-reborn"
10 license=('GPL3')
11 depends=('deepin-qt5integration'  'ffmpegthumbnailer' 'libxtst' 'mpv' 'qt5-multimedia'
12          'qtdbusextended' 'qtmpris')
13 makedepends=('cmake' 'gtest' 'ninja' 'qt5-tools')
14 groups=('deepin-extra')
15 options=('!lto')
16 source=("https://github.com/linuxdeepin/deepin-movie-reborn/archive/$pkgver/$pkgname-$pkgver.tar.gz")
17 sha512sums=('f3ec17b25b91751931d2aaf101f412cfc36ee39e7b6bf62db89447056c76525bdb3cbb2f4b16a1d359e01c64b56088c4a23ae75c7a4b33caab043632feb93417')
19 prepare() {
20   cd deepin-movie-reborn-$pkgver
21   sed -i '/avformat.h>/i #include <libavcodec/avcodec.h>' src/libdmr/playlist_model.cpp
24 build() {
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 .
28   ninja
31 package() {
32   cd deepin-movie-reborn-$pkgver
33   DESTDIR="$pkgdir" ninja install