summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa5777119579be15f0c97d0a4b62ec5166a6bb92 (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
# Maintainer: Samisafool <thenerdiestguy@gmail.com>
# Contributor: Dan Johansen <strit@manjaro.org>

_pkgname=login1
pkgbase=dfl-login1-git
pkgname=('dfl-login1-git' 'dfl-login1-qt6-git')
pkgver=v0.1.0.r3.g2f8335a
pkgrel=1
pkgdesc="Implementation of systemd/elogind for DFL"
arch=('x86_64' 'aarch64')
url="https://gitlab.com/desktop-frameworks/$_pkgname"
license=('GPL3')
makedepends=('git' 'meson' 'ninja' 'qt5-base' 'qt6-base')
source=("login1::git+https://gitlab.com/desktop-frameworks/login1.git")
sha256sums=('SKIP')

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

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

package_dfl-login1-git() {
  depends=('qt5-base')
  conflicts=('dfl-login1')
  provides=('dfl-login1')
  cd "${_pkgname}"
  DESTDIR="${pkgdir}" ninja -C .build install
}

package_dfl-login1-qt6-git() {
  depends=('qt6-base')
  conflicts=('dfl-login1-qt6')
  provides=('dfl-login1-qt6')
  cd "${_pkgname}"
  DESTDIR="${pkgdir}" ninja -C .build-qt6 install
}