summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD22
2 files changed, 16 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4480b35b9bf..b0b1ee877ad 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = dtkwidget-git
pkgdesc = Deepin graphical user interface library
- pkgver = 5.6.0.2.r28.g01aae744
+ pkgver = 5.6.3.r20.g99113616
pkgrel = 1
url = https://github.com/linuxdeepin/dtkwidget
arch = x86_64
@@ -26,7 +26,7 @@ pkgbase = dtkwidget-git
depends = startup-notification
provides = dtkwidget
conflicts = dtkwidget
- source = dtkwidget.tar.gz::https://github.com/linuxdeepin/dtkwidget/archive/01aae7443a2ae7c3071d62ba8f428a8835e41249.tar.gz
- sha512sums = 04cd55bdc92c0c442440a13ba6fe7bf78658ce4ecabdb558a262218a71c6570f24c2f57c301ce8ebce3ff6016b216ce0b21b2fdb05733dc19ad8cd20284e4ced
+ source = dtkwidget-git::git+https://github.com/linuxdeepin/dtkwidget
+ sha512sums = SKIP
pkgname = dtkwidget-git
diff --git a/PKGBUILD b/PKGBUILD
index bede382e4c3..f9e5a912fea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,7 @@
# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=dtkwidget-git
-_commit=01aae7443a2ae7c3071d62ba8f428a8835e41249
-_pkgname=dtkwidget
-pkgver=5.6.0.2.r28.g01aae744
+pkgver=5.6.3.r20.g99113616
pkgrel=1
pkgdesc='Deepin graphical user interface library'
arch=('x86_64' 'aarch64')
@@ -15,12 +13,18 @@ makedepends=('git' 'qt5-tools' 'gtest' 'dtkcommon-git' 'dtkcore-git' 'dtkgui-git
provides=('dtkwidget')
conflicts=('dtkwidget')
groups=('deepin-git')
-source=("$_pkgname.tar.gz::https://github.com/linuxdeepin/$_pkgname/archive/$_commit.tar.gz")
-sha512sums=('04cd55bdc92c0c442440a13ba6fe7bf78658ce4ecabdb558a262218a71c6570f24c2f57c301ce8ebce3ff6016b216ce0b21b2fdb05733dc19ad8cd20284e4ced')
+source=("$pkgname::git+https://github.com/linuxdeepin/dtkwidget")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
build() {
- cd $_pkgname-$_commit
- cmake -GNinja \
+ cd $pkgname
+ cmake -B build -GNinja \
-DHUNTER_ENABLED=OFF \
-DMKSPECS_INSTALL_DIR=/usr/lib/qt/mkspecs/modules/\
-DBUILD_PLUGINS=OFF \
@@ -29,10 +33,10 @@ build() {
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
- ninja
+ cmake --build build
}
package() {
- cd $_pkgname-$_commit
+ cd $pkgname/build
DESTDIR="$pkgdir" ninja install
}