Skip to content

Commit

Permalink
chore: support archlinux build
Browse files Browse the repository at this point in the history
Modify PKGBUILD to support archlinux build.

Log: add archlinux build support
  • Loading branch information
asterwyx committed Nov 13, 2023
1 parent 8399021 commit 6e03560
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions archlinux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
# Maintainer: justforlxz <[email protected]>
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() {
Expand Down

0 comments on commit 6e03560

Please sign in to comment.