[arch-commits] Commit in qt5-websockets/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Sun Nov 14 10:12:17 UTC 2021
Date: Sunday, November 14, 2021 @ 10:12:17
Author: arojas
Revision: 428423
archrelease: copy trunk to extra-x86_64
Added:
qt5-websockets/repos/extra-x86_64/PKGBUILD
(from rev 428422, qt5-websockets/trunk/PKGBUILD)
Deleted:
qt5-websockets/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 91 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 50 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-14 10:12:06 UTC (rev 428422)
+++ PKGBUILD 2021-11-14 10:12:17 UTC (rev 428423)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Andrea Scarpino <andrea at archlinux.org>
-
-pkgname=qt5-websockets
-_qtver=5.15.2
-pkgver=${_qtver/-/}
-pkgrel=1
-arch=('x86_64')
-url='https://www.qt.io'
-license=('GPL3' 'LGPL3' 'FDL' 'custom')
-pkgdesc='Provides WebSocket communication compliant with RFC 6455'
-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")
-sha256sums=('a0b42d85dd34ff6e2d23400e02f83d8b85bcd80e60efd1521d12d9625d4a233f')
-
-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}
-}
Copied: qt5-websockets/repos/extra-x86_64/PKGBUILD (from rev 428422, qt5-websockets/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-14 10:12:17 UTC (rev 428423)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=qt5-websockets
+_qtver=5.15.2
+pkgver=5.15.2+kde+r4
+pkgrel=1
+_commit=e7883bc64440b1ff4666272ac6eb710ee4bc221b
+arch=('x86_64')
+url='https://www.qt.io'
+license=('GPL3' 'LGPL3' 'FDL' 'custom')
+pkgdesc='Provides WebSocket communication compliant with RFC 6455'
+depends=('qt5-base')
+makedepends=('qt5-declarative' 'git')
+optdepends=('qt5-declarative: QML bindings')
+groups=('qt' 'qt5')
+_pkgfqn=qtwebsockets
+source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgfqn
+ echo "5.15.2+kde+r"`git rev-list --count origin/5.15.2..$_commit`
+}
+
+prepare() {
+ mkdir -p build
+
+ cd $_pkgfqn
+ git revert -n 767afe93c3f104716a68ff563d4a4e4ee0a62d3d # Revert version bump
+}
+
+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