summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94cf56c5739edea54df65910d6b3861b4f9aafcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Megumi_fox <i@megumifox.com>

pkgname=qliveplayer-git
pkgver=4.0.1.r0.gcd30fe8
pkgrel=2
pkgdesc='Cute and useful Live Stream Player with danmaku support.'
arch=('x86_64')
url="https://github.com/IsoaSFlus/QLivePlayer"
license=('GPL2')
provides=('qliveplayer')
conflicts=('qliveplayer')
depends=('mpv' 
         'ffmpeg'
         'qt5-base'
         'qt5-quickcontrols2'
         'qt5-graphicaleffects'
         'qt5-quickcontrols')
makedepends=('cmake'
             'git'
             'rust'
             'ninja'
             'extra-cmake-modules' )

source=(
    "QLivePlayer::git+https://github.com/IsoaSFlus/QLivePlayer.git"
    "QLivePlayer-Lib::git+https://github.com/IsoaSFlus/QLivePlayer-Lib.git#branch=dev"
)

pkgver(){
    cd QLivePlayer
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
    cd QLivePlayer
    git submodule init
    git config submodule.src/QLivePlayer-Lib.url "$srcdir/QLivePlayer-Lib"
    git submodule update
}

sha256sums=('SKIP' 'SKIP')

build() {
    cd $srcdir/QLivePlayer
    mkdir -p build
    cd build
    cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release  ..
    ninja
}

package() {
    cd $srcdir/QLivePlayer/build
    DESTDIR="$pkgdir" ninja install
}