testing/mpvqt: upgrade to 1.0.0

This commit is contained in:
Bart Ribbers 2023-12-11 09:30:50 +01:00
parent ca8275e5f6
commit 46cc07f336

43
testing/mpvqt/APKBUILD Normal file
View File

@ -0,0 +1,43 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-other
pkgname=mpvqt
pkgver=1.0.0
pkgrel=0
pkgdesc="A libmpv wrapper for QtQuick2 and QML"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://invent.kde.org/libraries/mpvqt"
license="(BSD-2-Clause OR BSD-3-Clause) AND CC-BY-SA-4.0 AND CC0-1.0 AND (LGPL-2.1-only OR LGPL-3.0-only)"
makedepends="
extra-cmake-modules
mpv-dev
qt6-qtbase-dev
qt6-qtdeclarative-dev
samurai
"
subpackages="$pkgname-dev"
_repo_url="https://invent.kde.org/libraries/mpvqt.git"
source="https://download.kde.org/stable/mpvqt/mpvqt-$pkgver.tar.xz"
build() {
cmake -B build -DBUILD_WITH_QT6=ON -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
42b19e74d682e327566559c9d600a8cd98b1a64d01804fccc5f85c990532daf434cc2005bf0af10d3cae78643d512651cfac504193e015538d5f75eaa088f26c mpvqt-1.0.0.tar.xz
"