* update qcoro to 0.11.0-1

This commit is contained in:
Alexander Baldeck 2024-11-07 11:00:25 +01:00
parent dbc6dcf9c3
commit 479ca02bc7
3 changed files with 48 additions and 35 deletions

25
qcoro/.SRCINFO Normal file
View File

@ -0,0 +1,25 @@
pkgbase = qcoro
pkgdesc = C++ Coroutines for Qt
pkgver = 0.11.0
pkgrel = 1
url = https://github.com/danvratil/qcoro
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = MIT
makedepends = cmake
makedepends = git
depends = gcc-libs
depends = glibc
depends = qt6-base
depends = qt6-declarative
depends = qt6-websockets
provides = qcoro-qt6
conflicts = qcoro-qt6
replaces = qcoro-qt6
source = git+https://github.com/danvratil/qcoro#tag=v0.11.0
sha256sums = c6af0228ce31478135feda901ef6d0a3b4dc157ebc2cd803608d22cf6cc00bfc
pkgname = qcoro

5
qcoro/.nvchecker.toml Normal file
View File

@ -0,0 +1,5 @@
[qcoro]
source = 'github'
github = 'danvratil/qcoro'
use_max_tag = true
prefix = 'v'

View File

@ -1,51 +1,34 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com> # POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Antonio Rojas <arojas@archlinux.org> # Maintainer: Antonio Rojas <arojas@archlinux.org>
pkgbase=qcoro pkgname=qcoro
pkgname=(qcoro-qt5 pkgver=0.11.0
qcoro-qt6) pkgrel=1
pkgver=0.10.0
pkgrel=1.1
pkgdesc='C++ Coroutines for Qt' pkgdesc='C++ Coroutines for Qt'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/danvratil/qcoro' url='https://github.com/danvratil/qcoro'
license=(MIT) license=(MIT)
depends=(gcc-libs depends=(gcc-libs
glibc) glibc
qt6-base
qt6-declarative
qt6-websockets)
makedepends=(cmake makedepends=(cmake
qt5-declarative git)
qt5-websockets conflicts=(qcoro-qt6)
qt6-declarative provides=(qcoro-qt6)
qt6-websockets) replaces=(qcoro-qt6)
source=(https://github.com/danvratil/qcoro/archive/v$pkgver/$pkgname-$pkgver.tar.gz) source=(git+https://github.com/danvratil/qcoro#tag=v$pkgver)
sha256sums=('b7c8f00273ad27d85814bf4ec93eb6922c75656800a61d11854d36355a4a1aec') sha256sums=('c6af0228ce31478135feda901ef6d0a3b4dc157ebc2cd803608d22cf6cc00bfc')
build() { build() {
cmake -B build5 -S $pkgbase-$pkgver \ cmake -B build -S $pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_QT_VERSION=5 \
-DBUILD_SHARED_LIBS=ON -DBUILD_SHARED_LIBS=ON
cmake --build build5 cmake --build build
cmake -B build6 -S $pkgbase-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_QT_VERSION=6 \
-DBUILD_SHARED_LIBS=ON
cmake --build build6
} }
package_qcoro-qt5() { package() {
depends+=(qt5-base DESTDIR="$pkgdir" cmake --install build
qt5-declarative install -Dm644 $pkgbase/LICENSES/MIT.txt -t "$pkgdir"/usr/share/licenses/$pkgname
qt5-websockets)
DESTDIR="$pkgdir" cmake --install build5
install -Dm644 $pkgbase-$pkgver/LICENSES/MIT.txt -t "$pkgdir"/usr/share/licenses/$pkgname
}
package_qcoro-qt6() {
depends+=(qt6-base
qt6-declarative
qt6-websockets)
DESTDIR="$pkgdir" cmake --install build6
install -Dm644 $pkgbase-$pkgver/LICENSES/MIT.txt -t "$pkgdir"/usr/share/licenses/$pkgname
} }