[arch-commits] Commit in qt5-websockets/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Fri Aug 2 11:10:32 UTC 2019


    Date: Friday, August 2, 2019 @ 11:10:32
  Author: ffy00
Revision: 497007

upgpkg: qt5-websockets 5.13.0-1

Added:
  qt5-websockets/trunk/PKGBUILD

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-02 11:10:32 UTC (rev 497007)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=qt5-websockets
+_qtver=5.13.0
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='https://www.qt.io'
+license=('GPL3' 'LGPL3' 'FDL' 'custom')
+pkgdesc='Web-based protocol designed to enable two-way communication between a client application and a remote host'
+depends=('qt5-base')
+makedepends=('qt5-declarative')
+optdepends=('qt5-declarative: QML bindings')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-$_qtver"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfqn.tar.xz")
+sha512sums=('93de37d6f3d4d240c618350eda39e8e5ec6ceef13e1dcac8d8170429cf73194859b389981859491e8b638c76c321a3d8d25ca0d29015230b068298d69de62315')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+
+  qmake ../$_pkgfqn
+
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir"/usr/lib -type f -name '*.prl' \
+    -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -d "$pkgdir"/usr/share/licenses
+  ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
+}
+



More information about the arch-commits mailing list