[arch-commits] Commit in qt5-svg/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Tue Apr 6 21:03:04 UTC 2021


    Date: Tuesday, April 6, 2021 @ 21:03:04
  Author: arojas
Revision: 411673

archrelease: copy trunk to testing-x86_64

Added:
  qt5-svg/repos/testing-x86_64/
  qt5-svg/repos/testing-x86_64/PKGBUILD
    (from rev 411672, qt5-svg/trunk/PKGBUILD)

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

Copied: qt5-svg/repos/testing-x86_64/PKGBUILD (from rev 411672, qt5-svg/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-04-06 21:03:04 UTC (rev 411673)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=qt5-svg
+pkgver=5.15.2+kde+r5
+pkgrel=1
+_commit=95990cbeebc0ab9959e2a925a93ad4897416bbb7
+arch=('x86_64')
+url='https://www.qt.io'
+license=('GPL3' 'LGPL3' 'FDL' 'custom')
+pkgdesc='Classes for displaying the contents of SVG files'
+depends=('qt5-base')
+makedepends=('git')
+groups=('qt' 'qt5')
+_pkgfqn=qtsvg
+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 9aac88424a1b76e0198b52437af58a6d94aff8e9 # 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