summaryrefslogtreecommitdiff
path: root/pcr/qt5-quick1
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-03 20:42:20 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-03 20:42:20 +0100
commit3cd461930add316e1fc394d964dd221159266684 (patch)
tree3d635ffbfb51e8b179df35d4f9e5bd2ff107a1ee /pcr/qt5-quick1
parent91ad913037120c0dd477547660062da7cbc1177b (diff)
downloadabslibre-3cd461930add316e1fc394d964dd221159266684.tar.gz
abslibre-3cd461930add316e1fc394d964dd221159266684.tar.bz2
abslibre-3cd461930add316e1fc394d964dd221159266684.zip
pcr/qt5-quick1: added
Diffstat (limited to 'pcr/qt5-quick1')
-rw-r--r--pcr/qt5-quick1/PKGBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/pcr/qt5-quick1/PKGBUILD b/pcr/qt5-quick1/PKGBUILD
new file mode 100644
index 000000000..f441abd3c
--- /dev/null
+++ b/pcr/qt5-quick1/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer (AUR): Zulu
+
+# parabola changes and rationale:
+# no changes.
+
+pkgname=qt5-quick1
+pkgver=5.9.2
+pkgrel=1
+arch=('i686' 'x86_64' 'armv7h')
+url='http://qt-project.org/'
+pkgdesc='Qt Declarative is provided for Qt 4 compatibility'
+license=('LGPL2.1' 'GPL3')
+#options=("debug")
+depends=('qt5-webkit' 'qt5-script')
+makedepends=('git')
+source=("git+https://code.qt.io/qt/qtquick1.git")
+sha1sums=('SKIP')
+
+_prlfix() {
+ # Fix wrong path in prl files
+ find "${pkgdir}/usr/lib" -type f -name '*.prl' \
+ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
+}
+
+prepare() {
+ cd qtquick1
+
+ if [ ! -d include ]; then
+ syncqt.pl-qt5 -version ${pkgver} sync.profile
+ fi
+}
+
+build() {
+ cd qtquick1
+ mkdir -p build
+ cd build
+ qmake-qt5 ..
+
+ make
+
+ make docs
+}
+
+package() {
+ cd qtquick1/build
+ make INSTALL_ROOT="${pkgdir}" install
+ make INSTALL_ROOT="${pkgdir}" install_docs
+
+ _prlfix
+
+ # create some symlinks in /usr/bin, postfixed with -qt5
+ install -d "${pkgdir}"/usr/bin
+ for i in $(ls ${pkgdir}/usr/bin); do
+ ln -s /usr/bin/${i} ${pkgdir}/usr/bin/${i}-qt5
+ done
+
+ install -D -m644 ../LGPL_EXCEPTION.txt \
+ "${pkgdir}"/usr/share/licenses/${pkgname}/LGPL_EXCEPTION.txt
+}