summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29c74d76a34b41f4b3a2c41d7b59b934185f279b (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>

pkgname=gnome-mpv-git
pkgver=0.6.r2.g98b5f4d
pkgrel=1
pkgdesc="GNOME frontend for MPV"
arch=('i686' 'x86_64')
url="https://github.com/gnome-mpv/gnome-mpv"
license=('GPL')
depends=('gtk3' 'mpv')
makedepends=('git' 'intltool' 'autoconf-archive')
optdepends=('youtube-dl: for video-sharing websites playback')
install=gnome-mpv.install
conflicts=('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"
    autoreconf -sfi
    intltoolize -c --automake
    ./configure --prefix=/usr
    make
}

package() {
    cd "$pkgname"
    make DESTDIR="$pkgdir" install
}