blob: 6be5368e35e13c33af9f8976237c2adec4a683be (
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
47
48
49
50
51
|
# Maintainer: zneix <zneix@zneix.eu>
# Contributor: Chen Jicheng <hi at chenjicheng dot com>
pkgname=obs-plugin-input-overlay-git
_pkgname=input-overlay
pkgver=5.0.0.r7.g358bb3a
pkgrel=1
pkgdesc='OBS Studio plugin showing keyboard, gamepad or mouse input as sources.'
arch=('x86_64')
url='https://github.com/univrsal/input-overlay'
license=('GPL2')
groups=('obs-plugins')
depends=(
'obs-studio>=28.0.0'
'libuiohook'
)
makedepends=(
'cmake'
'make'
'gcc'
'git'
)
provides=('obs-plugin-input-overlay')
conflicts=(
'obs-plugin-input-overlay'
'obs-plugin-input-overlay-bin'
)
options=()
source=('git+https://github.com/univrsal/input-overlay.git#branch=master')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
git submodule update --init --recursive
cmake .
make
}
package() {
_prjdir="${srcdir}/${_pkgname}"
install -D -m755 "${_prjdir}/input-overlay.so" "${pkgdir}/usr/lib/obs-plugins/input-overlay.so"
install -D -m644 "${_prjdir}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
mkdir -p "${pkgdir}/usr/share/obs/obs-plugins/input-overlay"
cp -r "${_prjdir}/data/locale" "${pkgdir}/usr/share/obs/obs-plugins/input-overlay/locale"
cp -r "${_prjdir}/presets" "${pkgdir}/usr/share/obs/obs-plugins/input-overlay/presets"
}
|