summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae3c570e7236808927897880003acfd69c477812 (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
# Maintainer: Simon Brulhart <simon@brulhart.me>
# Contributor: Suhaimi Ghazali <serdotlinecho@gmail.com>
# Contributor: Patrick Griffis <tingping@tingping.se>

pkgname=gnome-mpv-git
pkgver=0.12.r0.g809b98e
pkgrel=1
pkgdesc="GNOME frontend for MPV"
arch=('i686' 'x86_64')
url="https://github.com/gnome-mpv/gnome-mpv"
license=('GPL3')
depends=('gtk3' 'mpv')
makedepends=('git' 'meson')
optdepends=('youtube-dl: for video-sharing websites playback')
conflicts=('gnome-mpv')
provides=('gnome-mpv')
source=("$pkgname::git+https://github.com/gnome-mpv/gnome-mpv.git")
md5sums=('SKIP')

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

build() {
    cd "$pkgname"
    rm -rf _build
    /usr/bin/meson _build --buildtype=release --prefix=/usr
    ninja -C _build
}

package() {
    cd "$pkgname"
    env DESTDIR="$pkgdir" ninja -C _build install
}