summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba52b31d89e8d0e4e71f02aad0ff7dfb01b221e1 (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
# Maintainer: DigitOtter <digitotter@protonmail.com>
pkgname=obs-plugin-texture-share-vk
pkgver=v0.1.4.r3.g0207730
pkgrel=1
pkgdesc="Remote texture sharing plugin for OBS"
arch=( 'any' )
url='https://github.com/DigitOtter/obs-plugin-texture-share-vk'
license=( 'GPL' )
groups=()
depends=( 'obs-studio' 'texture-share-vk' )
makedepends=( 'qt6-base' 'git' 'cmake' 'gcc' )
source=( "${pkgname}::git+https://github.com/DigitOtter/obs-plugin-texture-share-vk.git#branch=master" )
sha256sums=( 'SKIP' )

pkgver() {
    cd "${pkgname}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

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