summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12ae5c99db9040e2199bcbcf49859a920872c737 (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=revda-git
pkgver=5.3.0.r0.gb0d4443
pkgrel=1
pkgdesc='Cute and useful Live Stream Player with danmaku support.'
arch=('x86_64')
url="https://github.com/THMonster/Revda"
license=('GPL2')
provides=('revda' 'qliveplayer-git')
conflicts=('revda' 'qliveplayer-git')
replaces=('qliveplayer-git')
depends=('mpv' 
         'ffmpeg'
         'curl'
         'webkit2gtk')
makedepends=('cmake'
             'git'
             'rust'
             'ninja'
             'yarn'
             'extra-cmake-modules')
optdepends=('nodejs: for douyu support')
source=(
    "Revda::git+https://github.com/THMonster/Revda.git"
    "dmlive::git+https://github.com/THMonster/dmlive.git"
)
sha256sums=('SKIP' 'SKIP')

pkgver(){
  cd Revda
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd Revda
    git submodule init
    git config submodule.src/dmlive.url "$srcdir/dmlive"
    git submodule update
}

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

package() {
    cd $srcdir/Revda/build
    DESTDIR="$pkgdir" cmake --install .
}