Skip to content

Instantly share code, notes, and snippets.

@mariusor
Created December 31, 2019 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariusor/c5d03733524e5e24e2c5928b3ff59c76 to your computer and use it in GitHub Desktop.
Save mariusor/c5d03733524e5e24e2c5928b3ff59c76 to your computer and use it in GitHub Desktop.
wlrobs-hg package patch for using meson
From c961410c0237ec57b8aecdc00ff6e9ed3324a739 Mon Sep 17 00:00:00 2001
From: Marius <marius@habarnam.ro>
Date: Tue, 31 Dec 2019 10:10:42 +0100
Subject: [PATCH] Updated to use meson for build
Removed creating the obs-plugins/wlrobs folder at install time
---
PKGBUILD | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index 3ebb278..be8be7f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: klardotsh <josh@klar.sh>
_pkgname=wlrobs
pkgname=${_pkgname}-hg
-pkgver=r12.58dab620cca0
+pkgver=r28.d7294c05b907
pkgrel=1
pkgdesc="An obs-studio plugin that allows you to screen capture on wlroots based wayland compositors"
arch=('i686' 'x86_64')
@@ -21,13 +21,14 @@ pkgver() {
}
build() {
- cd ${srcdir}/${_pkgname}/Release
- make || return 1
+ cd ${srcdir}/${_pkgname}
+ meson build || return 1
+ ninja -C build/ || return 1
}
package() {
- mkdir -p ${pkgdir}/usr/lib/obs-plugins
- install -D -m 0644 ${srcdir}/${_pkgname}/Release/libwlrobs.so \
+ mkdir -p ${pkgdir}/usr/lib/obs-plugins/wlrobs
+ install -D -m 0644 ${srcdir}/${_pkgname}/build/libwlrobs.so \
${pkgdir}/usr/lib/obs-plugins/wlrobs.so
}
--
2.24.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment