summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2022-05-16 10:35:56 -0600
committerMark Wagie2022-05-16 10:35:56 -0600
commitd951a7910a613e9a7b7a6aa317ec75ce15bfb443 (patch)
tree171ab44f38f05ebe7903488652b1e9141111e6f8
parentf6c50eb1779d0a48942dabf095e791cead929fab (diff)
downloadaur-d951a7910a613e9a7b7a6aa317ec75ce15bfb443.tar.gz
revert to Qt5
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD22
2 files changed, 13 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7f76d67757d..cbddc6e8e57 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
pkgbase = clight-gui-git
pkgdesc = Qt GUI for Clight
pkgver = r91.079bd99
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/nullobsi/clight-gui
arch = x86_64
+ arch = aarch64
license = GPL3
makedepends = git
- makedepends = clang
makedepends = cmake
- makedepends = qt6-tools
+ makedepends = qt5-tools
depends = clight
- depends = qt6-charts
+ depends = qt5-charts
provides = clight-gui
conflicts = clight-gui
source = git+https://github.com/nullobsi/clight-gui.git
diff --git a/PKGBUILD b/PKGBUILD
index b8225119c2b..8c40f71c1f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=clight-gui-git
pkgver=r91.079bd99
-pkgrel=1
+pkgrel=2
pkgdesc="Qt GUI for Clight"
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
url="https://github.com/nullobsi/clight-gui"
license=('GPL3')
-depends=('clight' 'qt6-charts')
-makedepends=('git' 'clang' 'cmake' 'qt6-tools')
+depends=('clight' 'qt5-charts')
+makedepends=('git' 'cmake' 'qt5-tools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/nullobsi/clight-gui.git'
@@ -20,22 +20,18 @@ 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/Qt6 \
+ -DCMAKE_PREFIX_PATH=/usr/lib/cmake/Qt5 \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DGENERATE_TRANSLATIONS=ON
- make -C build
+ -DGENERATE_TRANSLATIONS=ON \
+ -Wno-dev
+ cmake --build build
}
package() {
- make -C build DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
install -Dm644 "${pkgname%-git}.desktop" -t "$pkgdir/usr/share/applications"
}