summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9eae1c6c3b43b3902e740b5bb09329bf4fc5be56 (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
# Maintainer: zccrs <zhangjide@deepin.org>
pkgname=ddm-git
pkgver=r3.8a705fe
pkgrel=1
sourcename=ddm
sourcetars=("$sourcename"_"$pkgver".tar.xz)
sourcedir="$sourcename"
pkgdesc='a new Display Manager for DDE'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/ddm"
license=('LGPL3')
depends=(bash
         gcc-libs
         glibc
         libxau
         libxcb
         pam
         qt6-base
         systemd-libs
         ttf-font
         xorg-server
         xorg-xauth)
makedepends=(git
             extra-cmake-modules
             python-docutils
             qt6-tools
             ninja)
conflicts=('ddm')
provides=('ddm')
groups=('deepin-git')
source=("git+${url}")
sha512sums=('SKIP')

pkgver() {
  cd $sourcedir
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd $sourcedir
  cmake -GNinja \
      -DCMAKE_INSTALL_LIBEXECDIR=libexec \
      -DCMAKE_INSTALL_LIBDIR=lib \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_BUILD_TYPE=Release

  cmake --build .
}

package() {
  cd $sourcedir
  DESTDIR="$pkgdir" ninja install
}