From cedf8826564908db8a3a6dab770f72ef5c143944 Mon Sep 17 00:00:00 2001 From: Yixue Wang Date: Fri, 10 Nov 2023 14:30:51 +0800 Subject: [PATCH] chore: support archlinux build Modify PKGBUILD to support archlinux build. Log: add archlinux build support --- archlinux/PKGBUILD | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD index 4c7bbe7..bc4e2f5 100644 --- a/archlinux/PKGBUILD +++ b/archlinux/PKGBUILD @@ -1,30 +1,31 @@ # Maintainer: justforlxz -pkgname=deepin-qt5integration-git -pkgver=5.1.12.r54.g732a237 +pkgname=deepin-qt6integration-git +pkgver=6.0.0 pkgrel=1 -sourcename=qt5integration +sourcename=qt6integration sourcetars=("$sourcename"_"$pkgver".tar.xz) sourcedir="$sourcename" pkgdesc='Qt platform theme integration plugins for DDE' arch=('x86_64' 'aarch64') -url="https://github.com/linuxdeepin/qt5integration" +url="https://github.com/linuxdeepin/qt6integration" license=('GPL3') -depends=('dtkwidget-git' 'libqtxdg' 'deepin-qt5platform-plugins-git') -makedepends=('git' 'qt5-tools' 'xcb-util-renderutil' 'gtest' 'gmock' 'cmake' 'ninja') -conflicts=('deepin-qt5integration') -provides=('deepin-qt5integration') +depends=('dtk6widget-git' 'deepin-qt6platform-plugins-git' 'gcc-libs') +makedepends=('git' 'qt6-tools' 'xcb-util-renderutil' 'gtest' 'gmock' 'cmake' 'ninja' 'gcc' 'pkg-config') +conflicts=('deepin-qt6integration') +provides=('deepin-qt6integration') groups=('deepin-git') source=("${sourcetars[@]}") sha512sums=('SKIP') - build() { - cd $sourcedir - cmake . -GNinja \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release - ninja + cd $sourcedir + version=$(echo $pkgver | awk -F'[+_~-]' '{print $1}') + cmake . -GNinja \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DDTK_VERSION=$version + ninja } package() {