upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / psi-plugins / trunk / PKGBUILD
blobd8b989e83e95ef0ae15740239c12c3f6b92c4710
1 # Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
3 pkgname=psi-plugins
4 pkgver=1.5
5 pkgrel=2
6 pkgdesc="Additional features for Psi"
7 arch=('x86_64')
8 url="https://psi-im.org"
9 license=('GPL2')
10 depends=('psi')
11 makedepends=('libotr' 'tidy')
12 optdepends=('libotr: OTR plugin'
13             'tidy: OTR plugin')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/psi-im/plugins/archive/$pkgver.tar.gz"
15         'psiplugin.pri')
16 sha256sums=('1857b9dc89ef0d548697207b3a56283f2d67c0de75cc66bf863936a58150401e'
17             '2edc9f76e032e25044f0d16376194127c07b3372195482236901222ebec11a75')
19 prepare() {
20     cp -v psiplugin.pri plugins-$pkgver/
22     cd plugins-$pkgver
23     patch -p1 <<EOP
24 diff -wbBur plugins-1.5/generic/screenshotplugin/screenshot.cpp plugins-1.5.q/generic/screenshotplugin/screenshot.cpp
25 --- plugins-1.5/generic/screenshotplugin/screenshot.cpp 2018-11-05 10:55:49.000000000 +0300
26 +++ plugins-1.5.q/generic/screenshotplugin/screenshot.cpp       2021-10-07 22:47:29.239540853 +0300
27 @@ -32,6 +32,7 @@
28  #include <QCloseEvent>
29  #include <QDesktopServices>
30  #include <QClipboard>
31 +#include <QtGui/QPainterPath>
34  #include "screenshot.h"
35 EOP
38 build() {
39     cd plugins-$pkgver
40     for plugin in generic/* unix/*; do
41         if [ -d "$plugin" ]; then
42             (cd "$plugin" && qmake-qt5 PREFIX="/usr" QMAKE_STRIP= && make)
43         fi
44     done
47 package() {
48     cd plugins-$pkgver
49     for plugin in generic/* unix/*; do
50         if [ -d "$plugin" ]; then
51             (cd "$plugin" && make INSTALL_ROOT="$pkgdir" install)
52         fi
53     done