summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b15e6c3d8de3fb5c8863461564d4dc419c8b324 (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
pkgname=rewards-theater-obs-git
_pkgname=RewardsTheater
pkgver=1.0.5+10+gcb3f491
pkgrel=1
pkgdesc="An OBS plugin that lets your viewers redeem videos or sounds on stream via channel points."

arch=('x86_64')
url="https://github.com/gottagofaster236/RewardsTheater"
license=('GPL3')

depends=('obs-studio')

makedepends=(
	'ccache'
	'cmake'
	'extra-cmake-modules'
	'libx11'
	'boost'
	'qt6-base'
	'qt6-svg'
)

source=( 'git+https://github.com/gottagofaster236/RewardsTheater' )
sha256sums=('SKIP')

conflicts=('rewards-theater-obs')

pkgver() {
    cd "${srcdir}/${_pkgname%-git}"
    git describe --tags | sed 's/^v//;s/-/+/g'
}

build() {
	cd "${srcdir}/${_pkgname%-git}"
	cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DLINUX_PORTABLE=OFF
	cd build
	make
}

package() {
	cd "${srcdir}/${_pkgname%-git}/build"
	make DESTDIR="${pkgdir}/" install

	install -Dm644 "${srcdir}/${_pkgname%-git}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}