summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 13 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 41b1abea316..2b3c1aad043 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: DingYuan Zhang <justforlxz@gmail.com>
pkgname=deepin-dock-git
-pkgver=5.3.0.3.r2.g52dbff80
+pkgver=5.1.0.11.r353.g0a4c6101
pkgrel=1
pkgdesc='Deepin desktop-environment - dock module'
arch=('x86_64')
@@ -10,26 +10,32 @@ url="https://github.com/linuxdeepin/dde-dock"
license=('GPL3')
depends=('qt5-svg' 'deepin-daemon-git' 'deepin-qt5integration-git'
'deepin-qt-dbus-factory-git' 'deepin-network-utils-git' 'libdbusmenu-qt5')
-makedepends=('git' 'cmake' 'ninja' 'qt5-tools')
+makedepends=('git' 'cmake' 'ninja' 'qt5-tools' 'deepin-qt5integration-git' 'deepin-qt-dbus-factory' 'deepin-network-utils-git')
conflicts=('deepin-dock')
replaces=('deepin-dock')
provides=('deepin-dock')
groups=('deepin-git')
-source=("git://github.com/justforlxz/dde-dock")
-sha512sums=('SKIP')
+source=("$pkgname::git://github.com/linuxdeepin/dde-dock"
+ "dde-dock.patch")
+sha512sums=('SKIP' 'SKIP')
pkgver() {
- cd dde-dock
+ cd $pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
+prepare() {
+ cd $pkgname
+ patch -p1 -i ../dde-dock.patch
+}
+
build() {
- cd dde-dock
+ cd $pkgname
cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DDOCK_TRAY_USE_NATIVE_POPUP=YES
ninja
}
package() {
- cd dde-dock
+ cd $pkgname
DESTDIR="$pkgdir" ninja install
}