initial import
This commit is contained in:
35
slop/PKGBUILD
Normal file
35
slop/PKGBUILD
Normal file
@@ -0,0 +1,35 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=slop
|
||||
pkgver=7.6
|
||||
pkgrel=1
|
||||
pkgdesc="Utility to query the user for a selection and print the region to stdout"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://github.com/naelstrof/slop'
|
||||
license=('GPL-3')
|
||||
depends=('libxext' 'libx11' 'mesa' 'glew' 'libxrender')
|
||||
makedepends=('cmake' 'glm')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/naelstrof/slop/archive/v${pkgver}.tar.gz"
|
||||
"bugfix-add-missed-header.patch")
|
||||
sha512sums=('d1abc50cad124cfb11e9b57c38c824efb2ece3dffce8e54e451ce4adc4a7ad441c6171b7df5d1c8dfa66c875a12cf07b206ba3b87229c0e5f2ddf744d7922fc3'
|
||||
'68b9813470f3f3ec8aff8b19783ee3c00e97d55ce25f08464fbe03764e23b7cbbe31560193a255a4a84b0d760c6a6ad0eafdc20a3103f71c6a0e3ce69f7a230f')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
patch -Np1 -i ${srcdir}/bugfix-add-missed-header.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cmake \
|
||||
-S $pkgname-$pkgver \
|
||||
-B build \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
-Wno-dev
|
||||
make -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" -C build install
|
||||
install -Dm644 "${srcdir}/$pkgname-$pkgver/COPYING" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
22
slop/bugfix-add-missed-header.patch
Normal file
22
slop/bugfix-add-missed-header.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From 5cbcb9e389a02d6288f90a790c6b547d9f9dcac7 Mon Sep 17 00:00:00 2001
|
||||
From: Drunkard Zhang <gongfan193@gmail.com>
|
||||
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 <gongfan193@gmail.com>
|
||||
---
|
||||
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 ) {
|
||||
Reference in New Issue
Block a user