blob: 761eb4e8498d151c022c386fb820f4a07fc65339 (
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
|
# Maintainer: vinszent <vinszent@vinszent.com>
pkgname=gnome-twitch-player-backend-mpv-opengl-git
pkgver=r924.0f37971
pkgrel=1
pkgdesc="MPV OpenGL (hardware rendering) player backend for GNOME Twitch"
arch=('i686' 'x86_64')
url="https://github.com/vinszent/gnome-twitch"
license=('GPL3')
makedepends=('git' 'meson')
depends=('gnome-twitch-git' 'gtk3' 'libpeas' 'gobject-introspection' 'mpv')
# replaces=('gnome-twitch-mpv') Once 0.4.0 is released we can replace it
source=("$pkgname::git+https://github.com/vinszent/gnome-twitch.git")
md5sums=('SKIP')
pkgver()
{
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build()
{
cd "${pkgname}"
rm -rf build
mkdir build
cd build
meson --prefix /usr --libdir lib --buildtype release \
-Dbuild-gnome-twitch-executable=false \
-Dbuild-gnome-twitch-library=false \
-Dbuild-player-backend-mpv-opengl=true ..
ninja
}
package()
{
cd "${pkgname}/build"
DESTDIR="$pkgdir" ninja install
}
|