Date: Thursday, April 14, 2022 @ 17:56:25
  Author: felixonmars
Revision: 1186255

archrelease: copy trunk to community-staging-x86_64

Added:
  slop/repos/community-staging-x86_64/
  slop/repos/community-staging-x86_64/PKGBUILD
    (from rev 1186254, slop/trunk/PKGBUILD)
  slop/repos/community-staging-x86_64/bugfix-add-missed-header.patch
    (from rev 1186254, slop/trunk/bugfix-add-missed-header.patch)

--------------------------------+
 PKGBUILD                       |   32 ++++++++++++++++++++++++++++++++
 bugfix-add-missed-header.patch |   22 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)

Copied: slop/repos/community-staging-x86_64/PKGBUILD (from rev 1186254, 
slop/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-04-14 17:56:25 UTC (rev 1186255)
@@ -0,0 +1,32 @@
+# Maintainer: Lukas Fleischer <[email protected]>
+# Contributor: BartÅ‚omiej Piotrowski <[email protected]>
+# Contributor: naelstrof <[email protected]>
+
+pkgname=slop
+pkgver=7.5
+pkgrel=7
+pkgdesc='Utility to query the user for a selection and print the region to 
stdout'
+arch=('x86_64')
+url='https://github.com/naelstrof/slop'
+license=('GPL3')
+depends=('libxext' 'libx11' 'mesa' 'glew' 'libxrender')
+makedepends=('cmake' 'glm')
+source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v${pkgver}.tar.gz"
+        bugfix-add-missed-header.patch)
+md5sums=('d8ba3c332f801f19c2bd66014d79e988'
+         'f2bb3f2760b8a128b13db80e1ee1377c')
+
+prepare() {
+       cd "$pkgname-$pkgver"
+       patch -Np1 -i ../bugfix-add-missed-header.patch
+}
+
+build() {
+       cd "$pkgname-$pkgver"
+       cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .
+       make
+}
+
+package() {
+       make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
+}

Copied: slop/repos/community-staging-x86_64/bugfix-add-missed-header.patch 
(from rev 1186254, slop/trunk/bugfix-add-missed-header.patch)
===================================================================
--- community-staging-x86_64/bugfix-add-missed-header.patch                     
        (rev 0)
+++ community-staging-x86_64/bugfix-add-missed-header.patch     2022-04-14 
17:56:25 UTC (rev 1186255)
@@ -0,0 +1,22 @@
+From 5cbcb9e389a02d6288f90a790c6b547d9f9dcac7 Mon Sep 17 00:00:00 2001
+From: Drunkard Zhang <[email protected]>
+Date: Tue, 28 Sep 2021 12:20:25 +0800
+Subject: [PATCH] bugfix: add missed header
+
+XDestroyImage is included in <X11/Xutil.h> which belongs to libX11.
+Build fails without include this header on Gentoo.
+
+Signed-off-by: Drunkard Zhang <[email protected]>
+---
+ src/framebuffer.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/framebuffer.cpp b/src/framebuffer.cpp
+index 20909b3..da85a25 100644
+--- a/src/framebuffer.cpp
++++ b/src/framebuffer.cpp
+@@ -1,3 +1,4 @@
++#include <X11/Xutil.h>
+ #include "framebuffer.hpp"
+ 
+ slop::Framebuffer::Framebuffer( int w, int h ) {

Reply via email to