summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45652c70b3c6313f97b29036dac0530c2306c3a8 (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
# Maintainer: DigitOtter <digitotter@protonmail.com>
pkgname=obs-scene-tree-view-git
pkgver=v0.1.4.r0.gf9aab94
pkgrel=1
pkgdesc="Scene Tree Folder plugin for OBS Studio"
arch=( 'any' )
url='https://github.com/DigitOtter/obs_scene_tree_view.git'
license=( 'GPL' )
groups=()
depends=( 'obs-studio' )
makedepends=( 'qt6-base' 'git' 'cmake' 'gcc' )
provides=( 'obs-scene-tree-view' )
conflicts=(  'obs-scene-tree-view' )
source=( "${pkgname}::git+https://github.com/DigitOtter/obs_scene_tree_view.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
}