summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 249dda4dba5403958b4f7dc7aaecf1add0be44a0 (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
# Maintainer: yoshino <yoshino@git.yumil.in>

pkgname=xr-video-player-git
pkgver=r88.2e7d96d
pkgrel=1
pkgdesc='A virtual reality video player for Linux. Fork of vr-video-player by dec05eba'
arch=('x86_64')
url="https://codeberg.org/yoshino/xr-video-player"
license=('GPL3')
depends=(
  'glm'
  'glew'
  'glib2'
  'sdl2'
  'openxr'
  'wayland'
  'pipewire'
  'mpv'
)
makedepends=(
  'git'
  'cmake'
)
provides=('xr-video-player')
conflicts=('xr-video-player')
source=("$pkgname::git+https://codeberg.org/yoshino/xr-video-player")
sha512sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cmake -B build -S "$pkgname" \
    -DCMAKE_BUILD_TYPE='Release' \
    -DCMAKE_INSTALL_PREFIX='/usr' \

  cmake --build build
}

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

  install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/xr-video-player/LICENSE"
}