summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41f65984ec7522f6f0366b865a38827a3ab13916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: justforlxz <justforlxz@gmail.com>

pkgname=dde-shell-git
_pkgname=dde-shell
pkgver=0.0.43.r81.gb3f342c0
pkgrel=1
pkgdesc='New DDE shell'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dde-shell"
license=('LGPL3')
depends=('dtk6declarative'
         'qt5-wayland'
         'qt6-wayland'
         'dtkgui'
         'dtkwidget'
         'deepin-tray-loader'
)
makedepends=('git'
             'qt6-tools'
             'qt5-tools'
             'dtk6declarative'
             'qt5-wayland'
             'qt6-wayland'
             'dtkgui'
             'dtkwidget'
             'cmake'
             'ninja'
             'deepin-tray-loader'
             'deepin-application-manager'
             'treeland-protocols'
)
conflicts=('dde-shell' 'deepin-shell')
provides=('dde-shell' 'deepin-shell')
groups=('deepin-git')
source=("git+https://github.com/linuxdeepin/dde-shell.git")
sha512sums=('SKIP')

pkgver() {
    cd $srcdir/$_pkgname
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $srcdir/$_pkgname
  cmake -B build -GNinja \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_SYSCONFDIR=/etc \
    -DCMAKE_BUILD_TYPE=Release
  cmake --build build
}

package() {
  cd $srcdir/$_pkgname/build
  DESTDIR="$pkgdir" ninja install
}