[arch-commits] Commit in qcoro (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Dec 6 13:07:19 UTC 2021
Date: Monday, December 6, 2021 @ 13:07:18
Author: arojas
Revision: 1065276
archrelease: copy trunk to community-x86_64
Added:
qcoro/repos/
qcoro/repos/community-x86_64/
qcoro/repos/community-x86_64/PKGBUILD
(from rev 1065275, qcoro/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: qcoro/repos/community-x86_64/PKGBUILD (from rev 1065275, qcoro/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2021-12-06 13:07:18 UTC (rev 1065276)
@@ -0,0 +1,35 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=qcoro
+pkgname=(qcoro-qt5 qcoro-qt6)
+pkgver=0.3.0
+pkgrel=1
+pkgdesc='C++ Coroutines for Qt'
+arch=(x86_64)
+url='https://github.com/danvratil/qcoro'
+license=(MIT)
+makedepends=(cmake qt5-base qt6-base)
+source=(https://github.com/danvratil/qcoro/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('610fcf621de0cf04597e2e308d1d22a7fce2a39eafa2d4827d1ff6c8b0e724c0')
+
+build() {
+ cmake -B build5 -S $pkgbase-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DUSE_QT_VERSION=5
+ cmake --build build5
+
+ cmake -B build6 -S $pkgbase-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DUSE_QT_VERSION=6
+ cmake --build build6
+}
+
+package_qcoro-qt5() {
+ DESTDIR="$pkgdir" cmake --install build5
+ install -Dm644 $pkgbase-$pkgver/LICENSES/MIT.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+package_qcoro-qt6() {
+ DESTDIR="$pkgdir" cmake --install build6
+ install -Dm644 $pkgbase-$pkgver/LICENSES/MIT.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list