summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79a512bdbda43c5de2dea8897ca5327175865e80 (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
# Maintainer: Evert Vorster < gmail-com: evorster >

pkgname=bigsh0t-plugins-release-git
_srcname=bigsh0t
pkgver=2.6.r0.gd973312
pkgrel=1
pkgdesc='360 equirectangular VR Video Stitching and Manipulation filters for free video editors'
arch=('i686' 'x86_64')
url=https://bitbucket.org/leo_sutic/bigsh0t/src/main/
license=('GPL')
depends=('git')
makedepends=('git' 'opencv')
optdepends=('opencv')
provides=('bigsh0t-plugins')
conflicts=('bigsh0t-plugins')
source=('git+https://bitbucket.org/leo_sutic/bigsh0t.git#tag=2.6')
sha256sums=('SKIP')

prepare() {
	cd "$_srcname"
	mkdir -p Release-Linux
#pwd
#	patch -Np1 -i ../../Comp.patch
}

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

build() {
	cd "$_srcname"
	cd Release-Linux
	cmake -S .. -B . -DCMAKE_BUILD_TYPE=Release
	make
}

package() {
	mkdir -p "$pkgdir"/usr/lib/frei0r-1
        mkdir -p "$pkgdir"/share/shotcut/qml/filters/
	cd "$builddir"
        cd "$_srcname"
        cp -rp Release-Linux/bigsh0t-$(echo $pkgver | cut -s -d"." -f1,2)-linux/lib/frei0r-1/* $pkgdir/usr/lib/frei0r-1/
	cp -rp Release-Linux/bigsh0t-$(echo $pkgver | cut -s -d"." -f1,2)-linux/shotcut/share/shotcut/qml/filters/* $pkgdir/share/shotcut/qml/filters/
}