generated from obsproject/obs-plugintemplate
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPKGBUILD
49 lines (39 loc) · 1.06 KB
/
PKGBUILD
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
47
48
# PKGBUILD file author: deadYokai
pkgname=rewards-theater-obs-git
_pkgname=RewardsTheater
pkgver=1.1.3
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}"
# https://github.com/gottagofaster236/RewardsTheater/issues/16
export CXXFLAGS+=" -Wno-error=deprecated-declarations"
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"
}