diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a5cc0dedfb00 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = obs-websocket-git + pkgdesc = Remote control of OBS Studio made easy + pkgver = VERSION + pkgrel = 1 + url = https://github.com/Palakis/obs-websocket + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + makedepends = cmake + depends = obs-studio + depends = qt5-websockets + provides = obs-websocket + conflicts = obs-websocket + source = git+https://github.com/Palakis/obs-websocket.git + md5sums = SKIP + +pkgname = obs-websocket-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..82dcd87993d0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Liam Greenough <beacon515@gmail.com> +pkgname=obs-websocket-git +pkgver=VERSION +pkgrel=1 +pkgdesc="Remote control of OBS Studio made easy" +arch=('i686' 'x86_64') +url="https://github.com/Palakis/obs-websocket" +license=('GPL2') +depends=('obs-studio' 'qt5-websockets') +makedepends=('git' 'cmake') +provides=('obs-websocket') +conflicts=('obs-websocket') +source=('git+https://github.com/Palakis/obs-websocket.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/obs-websocket +# Git, no tags available + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/obs-websocket + mkdir build && cd build + cmake -DLIBOBS_INCLUDE_DIR="/usr/share/obs/libobs" -DCMAKE_INSTALL_PREFIX=/usr .. + make +} + +package() { + cd "$srcdir/obs-websocket/build" + make DESTDIR="$pkgdir/" install +} |