summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca5107e05efd62264de5a744e0057b17b1046336 (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
54
55
# Maintainer: Ícar N. S. <personal@icarns.xyz>
# ArchLinux's PKGBUILD with a commit reverted to enable unstable vaapi support
# https://github.com/archlinux/svntogit-packages/blob/master/totem/repos/extra-x86_64/PKGBUILD

_gitname=totem
pkgname=totem-vaapi
pkgver=3.38.2
pkgrel=1
pkgdesc="Movie player for the GNOME desktop based on GStreamer with (unstable) VA-API support"
url="https://wiki.gnome.org/Apps/Videos"
arch=(x86_64)
license=(GPL2 custom)
depends=(totem-plparser iso-codes libpeas clutter-gtk clutter-gst grilo
         gsettings-desktop-schemas dconf python-gobject python-xdg gnome-desktop
         gst-plugins-base gst-plugins-good gst-plugins-bad gstreamer-vaapi)
makedepends=(libnautilus-extension itstool docbook-xsl python-pylint
             gobject-introspection git appstream-glib gtk-doc meson intltool)
optdepends=('gst-plugins-ugly: Extra media codecs'
            'gst-libav: Extra media codecs'
            'grilo-plugins: Media discovery'
            'python-dbus: MPRIS plugin')
groups=(gnome)
conflicts=(totem-plugin totem)
replaces=(totem-plugin)
provides=(totem)
_commit=5bcc171feaf6127dcd2c09289063adef662d33b2  # tags/V_3_38_2^0
source=("git+https://gitlab.gnome.org/GNOME/totem.git#commit=$_commit"
        "git+https://gitlab.gnome.org/GNOME/libgd.git")
sha256sums=('SKIP'
            'SKIP')

pkgver() {
  cd ${_gitname}
  git describe --tags | sed 's/^V_//;s/-fixed//;s/_/./g;s/-/+/g'
}

prepare() {
  cd ${_gitname}

  git submodule init
  git submodule set-url subprojects/libgd "$srcdir/libgd"
  git submodule update
# Revert the commit that disables vaapi
  git revert 190796bdfe12a3c3cdf95b88155be8d0f44de2f3 --no-edit --no-commit
}

build() {
  arch-meson ${_gitname} build -D enable-gtk-doc=true
  ninja -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
  install -Dt "$pkgdir/usr/share/licenses/${_gitname}" -m644 ${_gitname}/COPYING
}