[arch-commits] Commit in qcustomplot/repos/community-x86_64 (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Fri Jun 11 18:18:45 UTC 2021
Date: Friday, June 11, 2021 @ 18:18:45
Author: dvzrv
Revision: 962837
archrelease: copy trunk to community-x86_64
Added:
qcustomplot/repos/community-x86_64/PKGBUILD
(from rev 962836, qcustomplot/trunk/PKGBUILD)
Deleted:
qcustomplot/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 114 ++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 64 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-11 18:18:33 UTC (rev 962836)
+++ PKGBUILD 2021-06-11 18:18:45 UTC (rev 962837)
@@ -1,50 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-_name=QCustomPlot
-pkgname=qcustomplot
-pkgver=2.0.1
-pkgrel=5
-pkgdesc="Qt C++ widget for plotting and data visualization"
-arch=('x86_64')
-url="https://www.qcustomplot.com/"
-license=('GPL3')
-depends=('qt5-base')
-makedepends=('doxygen' 'graphviz' 'qt5-tools')
-provides=('libqcustomplot.so')
-replaces=('qcustomplot-qt5')
-source=("https://gitlab.com/DerManu/${_name}/-/archive/v${pkgver}/${_name}-v${pkgver}.tar.bz2")
-sha512sums=('fb9184d517007b7c280e7122b3c14b6e49bf6b550bf41b95fe6808cc1c66c66dd82383796bfa4f43ce1ff0406e4c53e579ecc0aa2992741c5a45e5469f4bf5e8')
-
-prepare() {
- mv -v "${_name}-v${pkgver}" "${pkgname}-${pkgver}"
- cd "$pkgname-$pkgver"
- # using amalgamated sources, so we can create shared objects
- ./amalgamate src/*.skeleton
- sed -e 's|qcustomplot.cpp|src/qcustomplot.cpp|g' \
- -e 's|qcustomplot.h|src/qcustomplot.h|g' \
- -i sharedlib/sharedlib-compilation/sharedlib-compilation.pro
- find . -type f -iname "*.gitignore" -delete
-}
-
-build() {
- cd "$pkgname-$pkgver"
- qmake-qt5 sharedlib/sharedlib-compilation/sharedlib-compilation.pro
- make
- # create documentation
- doxygen
- qhelpgenerator documentation/html/index.qhp \
- -o documentation/qthelp/qcustomplot.qch
- find documentation/html -type f \
- -iname "*.qhp" -or -iname "*.map" -or -iname "*.md5" -delete
-}
-
-package() {
- cd "$pkgname-$pkgver"
- # there is no install target
- install -vDm 644 "src/${pkgname}.h" -t "${pkgdir}/usr/include/"
- install -vdm 755 "${pkgdir}/usr/lib/"
- cp -av "lib${pkgname}.so"* "${pkgdir}/usr/lib/"
- install -vDm 644 changelog.txt -t "${pkgdir}/usr/share/doc/${pkgname}/"
- cp -av examples "${pkgdir}/usr/share/doc/${pkgname}/"
- cp -av documentation/html "${pkgdir}/usr/share/doc/${pkgname}/"
- cp -av documentation/qthelp "${pkgdir}/usr/share/doc/${pkgname}/"
-}
Copied: qcustomplot/repos/community-x86_64/PKGBUILD (from rev 962836, qcustomplot/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-06-11 18:18:45 UTC (rev 962837)
@@ -0,0 +1,64 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=QCustomPlot
+pkgbase=qcustomplot
+pkgname=('qcustomplot' 'qcustomplot-doc')
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="Qt C++ widget for plotting and data visualization"
+arch=('x86_64')
+url="https://www.qcustomplot.com/"
+license=('GPL3')
+makedepends=('doxygen' 'graphviz' 'qt5-tools')
+source=(
+ "${pkgname}-${pkgver}.tar.bz2::https://gitlab.com/DerManu/${_name}/-/archive/v${pkgver}/${_name}-v${pkgver}.tar.bz2"
+ "${pkgname}-${pkgver}-source.tar.gz::https://www.qcustomplot.com/release/${pkgver}fixed/${_name}-source.tar.gz"
+)
+sha512sums=('90dabc3fd6473be59f06dd8ca46d213d12945e1c79c55333e44f3e97ae39b4c359e192d6b52e3d81e90d667702ea6a1dcf49326e5b134d9623a91aa6356b780a'
+ '8b209d386393b616cc99e47f99f5a5bcd2c4923e827d948461bd6cfd15e110f2dfa5981abfed35d65a9cf5aa9e09c8820d038c8c10bcfc6585af61a4ba558c2d')
+b2sums=('1af3a4833a82a01ff2552aaa0cd2f27c52144f375267747d9621219fc80fb2d638000bdf5797d3e561da670c29eccb9aa039dd605ff42f1447d801b2b1408acc'
+ 'cdb6b64e53c26b9ea156329c46fb215048f0076784ab301e39a7e42c2191d459339cbf3ea5e24c517aed9a47d5fda68b401221aaeec072bbf97fd2bf72a0861f')
+
+prepare() {
+ mv -v "${_name}-v${pkgver}" "${pkgbase}-${pkgver}"
+ cd "${pkgbase}-${pkgver}"
+ # move required amalgameted sources into place
+ mv -v "../${pkgname}-source/"*.{cpp,h} .
+}
+
+build() {
+ cd "${pkgbase}-${pkgver}"
+ qmake-qt5 sharedlib/sharedlib-compilation/sharedlib-compilation.pro
+ make
+ # create documentation
+ doxygen
+ qhelpgenerator documentation/html/index.qhp \
+ -o documentation/qthelp/qcustomplot.qch
+ find documentation/html -type f \
+ -iname "*.qhp" -or -iname "*.map" -or -iname "*.md5" -delete
+}
+
+package_qcustomplot() {
+ depends=('qt5-base')
+ provides=('libqcustomplot.so')
+ replaces=('qcustomplot-qt5')
+
+ cd "${pkgbase}-${pkgver}"
+ # there is no install target
+ install -vDm 644 "${pkgname}.h" -t "${pkgdir}/usr/include/"
+ install -vdm 755 "${pkgdir}/usr/lib/"
+ cp -av "lib${pkgname}.so"* "${pkgdir}/usr/lib/"
+ install -vDm 644 changelog.txt -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}
+
+package_qcustomplot-doc() {
+ pkgdesc+=" (docs)"
+
+ cd "${pkgbase}-${pkgver}"
+ install -vDm 644 documentation/qthelp/*.qch -t "${pkgdir}/usr/share/doc/qt/"
+ find examples -type f -exec install -vDm 644 {} "${pkgdir}/usr/share/doc/${pkgbase}/"{} \;
+ (
+ cd documentation
+ find html -type f -exec install -vDm 644 {} "${pkgdir}/usr/share/doc/${pkgbase}/"{} \;
+ )
+}
More information about the arch-commits
mailing list