summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0bc8c6f3cb857175d484276d1910114771eba1e8 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Maintainer: Dan Johansen <strit@strits.dk>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Librewish <librewish@gmail.com?

pkgbase=greetd-qtgreet
pkgname=('greetd-qtgreet'
         'greetd-qtgreet-qt6')
_pkgname=QtGreet
pkgver=2.0.2
pkgrel=4
pkgdesc='Qt based greeter for greetd'
arch=('aarch64' 'x86_64')
url="https://gitlab.com/marcusbritanicus/$_pkgname"
license=('GPL-3.0-only')
depends=(
        'python'
        'libxkbcommon'
        'hicolor-icon-theme'
        'wayland'
        'mpv'
        'wlroots0.17'
)
optdepends=('wayfire')
makedepends=(
            'meson'
            'ninja'
            'qt5-base'
            'python'
            'python-pyqt5'
            'dfl-wayqt'
            'dfl-login1'
            'dfl-applications'
            'dfl-utils'
            'qt6-base'
            'python-pyqt6'
            'dfl-wayqt-qt6'
            'dfl-login1-qt6'
            'dfl-applications-qt6'
            'dfl-utils-qt6'
            'libxkbcommon'
            'hicolor-icon-theme'
            'mpv'
            'wlroots0.17'
            'wayland'
)
backup=(
       "etc/qtgreet/config.ini"
       "etc/qtgreet/sway.cfg"
       "etc/qtgreet/users.conf"
       "etc/qtgreet/wayfire.ini"
)
source=("$pkgbase-$pkgver.tar.gz::$url/-/archive/v$pkgver/$_pkgname-v$pkgver.tar.gz")
sha256sums=('a9e79d4ab498b54b02f246e67781a4622049eb77f507a4120e8a12298081d453')

build() {
  cd "${_pkgname}-v${pkgver}"
  echo "Building QT5 version..."
  PKG_CONFIG_PATH=/usr/lib/wlroots0.17/pkgconfig \
  meson .build --prefix=/usr -Duse_qt_version=qt5 --buildtype=release
  ninja -C .build

  echo "Building QT6 version..."
  PKG_CONFIG_PATH=/usr/lib/wlroots0.17/pkgconfig \
  meson .build-qt6 --prefix=/usr -Duse_qt_version=qt6 --buildtype=release
  ninja -C .build-qt6
}

package_greetd-qtgreet() {
  depends+=(
           'qt5-base'
           'python-pyqt5'
           'dfl-wayqt'
           'dfl-login1'
           'dfl-applications'
           'dfl-utils'
  )
  cd "${_pkgname}-v${pkgver}"
  DESTDIR="${pkgdir}" ninja -C .build install
}

package_greetd-qtgreet-qt6() {
  depends+=(
           'qt6-base'
           'python-pyqt6'
           'dfl-wayqt-qt6'
           'dfl-login1-qt6'
           'dfl-applications-qt6'
           'dfl-utils-qt6'
  )
  cd "${_pkgname}-v${pkgver}"
  DESTDIR="${pkgdir}" ninja -C .build-qt6 install
}