summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa3846d4688bc943e9d1a152c0ffbbac4f0157b2 (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
# Maintainer: Frechdachs

_pkgname=mpvqc-gtk
pkgname=${_pkgname}-git
pkgver=v0.9.0.g224c0ba
pkgrel=1
pkgdesc="mpvQC is a libmpv based application for the creation of quality control reports of video files. (GTK version)"
arch=('any')
url="https://github.com/mpvqc/mpvQC-gtk"
license=('AGPL3')
depends=('mpv'
         'python'
         'python-opengl'
         'python-gobject'
         )
makedepends=('git'
             'meson'
             )
provides=("$_pkgname" "mpvqc")
conflicts=("$_pkgname" "mpvqc")
source=("$_pkgname::git+https://github.com/mpvqc/mpvQC-gtk.git")
sha256sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    echo "$(git describe --long --tags | tr - .)"
}

prepare() {
    mkdir -p build
}

build() {
    arch-meson build $_pkgname
    ninja -C build
}

package() {
    DESTDIR="$pkgdir" ninja -C build install

    cd "$_pkgname"
    install -Dm644 Readme.md "$pkgdir/usr/share/doc/$_pkgname/Readme.md"
    install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING"
}