summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjustforlxz2022-10-11 10:39:53 +0800
committerjustforlxz2022-10-11 10:39:53 +0800
commit0be7152b37f6a95d1d3e3eaa98dab7c78ffa0af2 (patch)
tree919f75df3add056dd822854af0727ad9a942f6e4
parent7efab950fcac35eab8150b613c99d34dc1f70210 (diff)
downloadaur-0be7152b37f6a95d1d3e3eaa98dab7c78ffa0af2.tar.gz
update
-rw-r--r--PKGBUILD39
1 files changed, 18 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 695294112143..57145d0ba69e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,39 +1,36 @@
# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=dtkgui-git
-pkgver=5.5.21.r6.g18ee272
+_commit=5204f570ef298afd3555edd2e3b718e6423681ac
+_pkgname=dtkgui
+pkgver=5.6.0.2.r14.g5204f57
pkgrel=1
pkgdesc='Deepin Toolkit, gui module for DDE look and feel'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dtkgui"
license=('LGPL3')
depends=('dtkcore-git' 'librsvg' 'qt5-x11extras')
-makedepends=('git' 'qt5-tools' 'dtkcore-git' 'librsvg' 'qt5-x11extras' 'gtest' 'gmock')
+makedepends=('git' 'qt5-tools' 'dtkcore-git' 'librsvg' 'qt5-x11extras' 'gtest' 'gmock' 'cmake' 'ninja')
conflicts=('dtkgui')
provides=('dtkgui')
groups=('deepin-git')
-source=("$pkgname::git+https://github.com/linuxdeepin/dtkgui")
-sha512sums=('SKIP')
-
-pkgver() {
- cd $pkgname
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-prepare() {
- cd $pkgname
- if [[ ! -z ${sha} ]];then
- git checkout -b $sha
- fi
-}
+source=("$_pkgname.tar.gz::https://github.com/linuxdeepin/$_pkgname/archive/$_commit.tar.gz")
+sha512sums=('5a9591fb487ec085a3b460da624ffb7433c44cddd4c4fec80f7337f9a5b61027d1b6e1ab7ad6b710f32aa38905357f44ef062f2311944048f89227c9ad0387c9')
build() {
- cd $pkgname
- qmake-qt5 PREFIX=/usr DTK_VERSION=$pkgver LIB_INSTALL_DIR=/usr/lib
- make
+ cd $_pkgname-$_commit
+ cmake -GNinja \
+ -DNOTPACKAGE=OFF \
+ -DMKSPECS_INSTALL_DIR=/usr/lib/qt/mkspecs/modules/ \
+ -DBUILD_DOCS=ON \
+ -DQCH_INSTALL_DESTINATION=/usr/share/doc/qt \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+ ninja
}
package() {
- cd $pkgname
- make INSTALL_ROOT="$pkgdir" install
+ cd $_pkgname-$_commit
+ DESTDIR="$pkgdir" ninja install
}