summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eaf806da3f9b30a02d0703fc75fb410a4f01217f (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
# Maintainer: Dan Johansen <strit@archlinux.org>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Librewish <librewish@gmail.com?

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

build() {
  cd "${_pkgname}-v${pkgver}"
  echo "Building QT6 version..."
  meson setup .build --prefix=/usr -Duse_qt_version=qt6 --buildtype=release
  ninja -C .build
}

package_greetd-qtgreet() {
  cd "${_pkgname}-v${pkgver}"
  DESTDIR="${pkgdir}" ninja -C .build install
  echo "At least one of wayfire, sway or labwc is required"
}