summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2022-05-14 16:46:59 -0600
committerMark Wagie2022-05-14 16:46:59 -0600
commitf6c50eb1779d0a48942dabf095e791cead929fab (patch)
tree36313b99aab658949c4c499c9a2978383844c800
parent97eebd22f564977a71be3fb6c81f9c4bb1620756 (diff)
downloadaur-f6c50eb1779d0a48942dabf095e791cead929fab.tar.gz
switch to Qt6
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD24
2 files changed, 19 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1b6bf22d953..7f76d67757d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
pkgbase = clight-gui-git
pkgdesc = Qt GUI for Clight
- pkgver = r90.f601899
- pkgrel = 2
+ pkgver = r91.079bd99
+ pkgrel = 1
url = https://github.com/nullobsi/clight-gui
arch = x86_64
- arch = aarch64
license = GPL3
makedepends = git
+ makedepends = clang
makedepends = cmake
- makedepends = qt5-tools
+ makedepends = qt6-tools
depends = clight
- depends = qt5-charts
+ depends = qt6-charts
provides = clight-gui
conflicts = clight-gui
source = git+https://github.com/nullobsi/clight-gui.git
diff --git a/PKGBUILD b/PKGBUILD
index f55675da8cd..b8225119c2b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=clight-gui-git
-pkgver=r90.f601899
-pkgrel=2
+pkgver=r91.079bd99
+pkgrel=1
pkgdesc="Qt GUI for Clight"
-arch=('x86_64' 'aarch64')
+arch=('x86_64')
url="https://github.com/nullobsi/clight-gui"
license=('GPL3')
-depends=('clight' 'qt5-charts')
-makedepends=('git' 'cmake' 'qt5-tools')
+depends=('clight' 'qt6-charts')
+makedepends=('git' 'clang' 'cmake' 'qt6-tools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/nullobsi/clight-gui.git'
@@ -20,18 +20,22 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ sed -i 's/QT_VERSION 5/QT_VERSION 6/g' src/CMakeLists.txt
+}
+
build() {
cmake -B build -S "${pkgname%-git}/src" \
-DCMAKE_BUILD_TYPE=None \
- -DCMAKE_PREFIX_PATH=/usr/lib/cmake/Qt5 \
+ -DCMAKE_PREFIX_PATH=/usr/lib/cmake/Qt6 \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DGENERATE_TRANSLATIONS=ON \
- -Wno-dev
- cmake --build build
+ -DGENERATE_TRANSLATIONS=ON
+ make -C build
}
package() {
- DESTDIR="$pkgdir" cmake --install build
+ make -C build DESTDIR="$pkgdir" install
install -Dm644 "${pkgname%-git}.desktop" -t "$pkgdir/usr/share/applications"
}