summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bfa2b6401d1af033f2c9e9d373ee59fc6d39ea0c (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
# Maintainer: CreamSodass <greatvaluecreamsoda@gmail.com>

_plug=vship
pkgname=vapoursynth-plugin-vship-amd-git
pkgrel=3
pkgver=3.0.0.13.g1ed2fb3
pkgdesc="Plugin for Vapoursynth: vship for amd gpus (GIT version)"
arch=('x86_64')
url='https://codeberg.org/Line-fr/Vship'
license=('MIT')
depends=('hip-runtime-amd')
makedepends=('git' 'make')
optdepends=('vapoursynth: vapoursynth plugin usage')
provides=("vapoursynth-plugin-vship" "libvship")
conflicts=("vapoursynth-plugin-vship" "libvship")
source=("vship::https://codeberg.org/Line-fr/Vship.git")
sha256sums=('SKIP')

build() {
  cd "vship"
  export PATH="/opt/rocm/bin:/opt/rocm/lib/llvm/bin:${PATH}"
  export HIP_PATH=/opt/rocm

  make buildall
}

pkgver() {
  cd "${srcdir}/vship"
  # Generate pkgver like: v3.0.0.0.g7cd1d4f
  git describe --tags --long | sed 's/^v//;s/-/./g'
}

package(){
  cd "vship"
  make PREFIX="/usr" DESTDIR="${pkgdir}" install
}