[arch-commits] Commit in qcad/repos/community-x86_64 (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Dec 23 00:23:42 UTC 2017
Date: Saturday, December 23, 2017 @ 00:23:41
Author: arojas
Revision: 275584
archrelease: copy trunk to community-x86_64
Added:
qcad/repos/community-x86_64/PKGBUILD
(from rev 275583, qcad/trunk/PKGBUILD)
Deleted:
qcad/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 122 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 62 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-23 00:22:37 UTC (rev 275583)
+++ PKGBUILD 2017-12-23 00:23:41 UTC (rev 275584)
@@ -1,60 +0,0 @@
-# $Id$
-# Maintainer: 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.18.1.0
-pkgrel=1
-pkgdesc="A 2D CAD package based upon Qt"
-arch=('i686' 'x86_64')
-url="http://www.qcad.org"
-license=('GPL3')
-depends=(qt5-script qt5-svg gcc-libs qt5-xmlpatterns)
-makedepends=(qt5-tools glu)
-source=($pkgname-$pkgver.tar.gz::https://github.com/qcad/qcad/archive/v${pkgver}.tar.gz)
-sha256sums=('91b9545399ee28da4a877270f24b941de73037dce3a70eb97ae426851fcb9a6f')
-
-prepare() {
- cd "$srcdir"/qcad-$pkgver
- rm ../*.tar.gz
-}
-
-build() {
- cd "$srcdir"/qcad-$pkgver
- qmake-qt5 qcad.pro
- make
-}
-
-package() {
- cd "$srcdir"/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 plugins scripts ts "$pkgdir"/usr/lib/qcad
- cp release/* "$pkgdir"/usr/lib/qcad
-
- install -m755 readme.txt "$pkgdir"/usr/lib/qcad/readme.txt
-
- # qt
- 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/sqldrivers/*.so
- do
- ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/plugins/sqldrivers/${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 -dm0755 "$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-x86_64/PKGBUILD (from rev 275583, qcad/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-12-23 00:23:41 UTC (rev 275584)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer:
+# 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.19.2.0
+pkgrel=1
+pkgdesc="A 2D CAD package based upon Qt"
+arch=('x86_64')
+url="http://www.qcad.org"
+license=('GPL3')
+depends=(qt5-script qt5-svg gcc-libs qt5-xmlpatterns)
+makedepends=(qt5-tools glu)
+source=($pkgname-$pkgver.tar.gz::https://github.com/qcad/qcad/archive/v${pkgver}.tar.gz)
+sha256sums=('23f24b164ac6fca351f3b8087dbc6a2bf954c747bf46be40f50f16eb9fc41721')
+
+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 plugins scripts ts "$pkgdir"/usr/lib/qcad
+ cp release/* "$pkgdir"/usr/lib/qcad
+
+ install -m755 readme.txt "$pkgdir"/usr/lib/qcad/readme.txt
+
+ # qt
+ 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/sqldrivers/*.so
+ do
+ ln -sf ${sofiles} "$pkgdir"/usr/lib/qcad/plugins/sqldrivers/${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 -dm0755 "$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
+}
More information about the arch-commits
mailing list