[arch-commits] Commit in qwt/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 21:39:27 UTC 2018


    Date: Friday, November 9, 2018 @ 21:39:27
  Author: felixonmars
Revision: 338604

archrelease: copy trunk to staging-x86_64

Added:
  qwt/repos/staging-x86_64/
  qwt/repos/staging-x86_64/PKGBUILD
    (from rev 338603, qwt/trunk/PKGBUILD)

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

Copied: qwt/repos/staging-x86_64/PKGBUILD (from rev 338603, qwt/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-11-09 21:39:27 UTC (rev 338604)
@@ -0,0 +1,46 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+
+pkgname=qwt
+pkgver=6.1.3
+pkgrel=4
+pkgdesc='Qt Widgets for Technical Applications'
+url='http://qwt.sourceforge.net/'
+arch=('x86_64')
+depends=('qt5-base' 'qt5-svg')
+optdepends=('qt5-tools: For Designer plugin')
+makedepends=('qt5-tools')
+license=("custom:${pkgname}")
+source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
+sha512sums=('d4a73e9e7ddcb7c16c508920a298784935be2eddc8f7585993d9fffe1bb01e1787a0d5d7ea4f220398b94ea2b211a19009dccaeadce56a84410357124bcb051a')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+
+  sed -e '/^\s*QWT_INSTALL_PREFIX/ s|=.*|= /usr|' \
+      -e '/^QWT_INSTALL_DOCS/ s|/doc|/share/doc/qwt|' \
+      -e '/^QWT_INSTALL_HEADERS/ s|include|&/qwt|' \
+      -e '/^QWT_INSTALL_PLUGINS/ s|plugins/designer|lib/qt/&|' \
+      -e '/^QWT_INSTALL_FEATURES/ s|features|lib/qt/mkspecs/&|' \
+      -i qwtconfig.pri
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  qmake-qt5 qwt.pro
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  make INSTALL_ROOT="${pkgdir}" install
+
+  # move man pages
+  mv "${pkgdir}/usr/share/doc/qwt/man" "${pkgdir}/usr/share"
+
+  # install licence
+  install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list