[arch-commits] Commit in qcad/repos (4 files)
Antonio Rojas
arojas at archlinux.org
Thu Nov 19 21:02:22 UTC 2020
Date: Thursday, November 19, 2020 @ 21:02:21
Author: arojas
Revision: 757774
archrelease: copy trunk to community-staging-x86_64
Added:
qcad/repos/community-staging-x86_64/
qcad/repos/community-staging-x86_64/PKGBUILD
(from rev 757773, qcad/trunk/PKGBUILD)
qcad/repos/community-staging-x86_64/RRulerQt.patch
(from rev 757773, qcad/trunk/RRulerQt.patch)
qcad/repos/community-staging-x86_64/qt5.15.patch
(from rev 757773, qcad/trunk/qt5.15.patch)
----------------+
PKGBUILD | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
RRulerQt.patch | 20 ++++++++++++
qt5.15.patch | 12 +++++++
3 files changed, 123 insertions(+)
Copied: qcad/repos/community-staging-x86_64/PKGBUILD (from rev 757773, qcad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-19 21:02:21 UTC (rev 757774)
@@ -0,0 +1,91 @@
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Giovanni Scafora <linuxmania at gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=qcad
+pkgver=3.25.2.4
+pkgrel=3
+pkgdesc='A 2D CAD package based upon Qt'
+arch=('x86_64')
+url="https://www.qcad.org"
+license=('GPL3')
+depends=('qt5-script' 'qt5-svg' 'gcc-libs' 'qt5-xmlpatterns' 'qt5-tools')
+makedepends=('glu')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/qcad/qcad/archive/v${pkgver}.tar.gz")
+sha512sums=('8076825908f16d1dcc841588e79cb5ae43d1200fc39b79d025358bd0c25b8542591874b6ac3240ebe846edacfd4537f8452053acdcc918e2040895f7b7cf4d6e')
+
+prepare() {
+ rm *.tar.gz
+ cd qcad-$pkgver
+ sed -e 's|$${QT_VERSION}|5.5.0|g' \
+ -i src/3rdparty/3rdparty.pro # Don't require specific Qt version
+}
+
+build() {
+ cd qcad-$pkgver
+ qmake-qt5 qcad.pro
+ make
+}
+
+package() {
+ cd qcad-$pkgver
+
+ # remove project files
+ find . \( -name '*.pri' -or -name '.pro' -or -name '*.ts' \) -delete
+ find . \( -name 'Makefile' -name '.gitignore' \) -delete
+
+ install -dm755 "$pkgdir"/usr/lib/qcad
+ cp -r examples fonts libraries linetypes patterns scripts themes ts \
+ "$pkgdir"/usr/lib/qcad
+ cp release/{*.so,qcad-bin} "$pkgdir"/usr/lib/qcad
+
+ # install man
+ install -Dm644 qcad.1 "$pkgdir"/usr/share/man/man1/qcad.1
+
+ # readme
+ install -Dm644 readme.txt "$pkgdir"/usr/lib/qcad/readme.txt
+
+ # qt
+ cp -r plugins platforminputcontexts platforms xcbglintegrations \
+ "$pkgdir"/usr/lib/qcad
+ #install -dm755 "$pkgdir"/usr/lib/qcad/plugins/{designer,imageformats,printsupport,sqldrivers}
+ #for sofiles in /usr/lib/qt/plugins/designer/*.so
+ #do
+ #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/plugins/designer/${sofiles##/*/}
+ #done
+ #for sofiles in /usr/lib/qt/plugins/imageformats/*.so
+ #do
+ #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/plugins/imageformats/${sofiles##/*/}
+ #done
+ #for sofiles in /usr/lib/qt/plugins/printsupport/*.so
+ #do
+ #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/plugins/printsupport/${sofiles##/*/}
+ #done
+ #for sofiles in /usr/lib/qt/plugins/sqldrivers/*.so
+ #do
+ #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/plugins/sqldrivers/${sofiles##/*/}
+ #done
+ #install -dm755 "$pkgdir"/usr/lib/qcad/{platforminputcontexts,platforms,xcbglintegrations}
+ #for sofiles in /usr/lib/qt/plugins/platforminputcontexts/*.so
+ #do
+ #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/platforminputcontexts/${sofiles##/*/}
+ #done
+ #for sofiles in /usr/lib/qt/plugins/platforms/*.so
+ #do
+ #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/platforms/${sofiles##/*/}
+ #done
+ #for sofiles in /usr/lib/qt/plugins/xcbglintegrations/*.so
+ #do
+ #ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/xcbglintegrations/${sofiles##/*/}
+ #done
+
+ install -Dm644 scripts/qcad_icon.png "$pkgdir"/usr/share/pixmaps/qcad_icon.png
+ install -Dm644 qcad.desktop "$pkgdir"/usr/share/applications/qcad.desktop
+
+ install -dm755 "$pkgdir"/usr/bin
+ echo -e '#!/bin/sh\nLD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"/usr/lib/qcad" exec /usr/lib/qcad/qcad-bin "$@"' >"$pkgdir"/usr/bin/qcad
+
+ chmod 0755 "$pkgdir"/usr/bin/qcad
+}
Copied: qcad/repos/community-staging-x86_64/RRulerQt.patch (from rev 757773, qcad/trunk/RRulerQt.patch)
===================================================================
--- community-staging-x86_64/RRulerQt.patch (rev 0)
+++ community-staging-x86_64/RRulerQt.patch 2020-11-19 21:02:21 UTC (rev 757774)
@@ -0,0 +1,20 @@
+diff --git a/src/gui/RRulerQt.h b/src/gui/RRulerQt.h
+index 5c1cdd910..48817da0b 100644
+--- a/src/gui/RRulerQt.h
++++ b/src/gui/RRulerQt.h
+@@ -1,6 +1,6 @@
+ /**
+ * Copyright (c) 2011-2018 by Andrew Mustun. All rights reserved.
+- *
++ *
+ * This file is part of the QCAD project.
+ *
+ * QCAD is free software: you can redistribute it and/or modify
+@@ -24,6 +24,7 @@
+
+ #include <QFrame>
+ #include <QMetaType>
++#include <QPainterPath>
+
+ #include "RCoordinateListener.h"
+ #include "RRuler.h"
Copied: qcad/repos/community-staging-x86_64/qt5.15.patch (from rev 757773, qcad/trunk/qt5.15.patch)
===================================================================
--- community-staging-x86_64/qt5.15.patch (rev 0)
+++ community-staging-x86_64/qt5.15.patch 2020-11-19 21:02:21 UTC (rev 757774)
@@ -0,0 +1,12 @@
+diff --git a/src/gui/RRulerQt.h b/src/gui/RRulerQt.h
+index 5c1cdd910..8f250461c 100644
+--- a/src/gui/RRulerQt.h
++++ b/src/gui/RRulerQt.h
+@@ -24,6 +24,7 @@
+
+ #include <QFrame>
+ #include <QMetaType>
++#include <QPainterPath>
+
+ #include "RCoordinateListener.h"
+ #include "RRuler.h"
More information about the arch-commits
mailing list