diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 13 insertions, 17 deletions
@@ -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 @@ -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" } |