summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75c8c24449c363e83a5957a25ba9f8ce6d01f6dc (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
# Maintainer: Denis Oster <denis.oster.dev@gmail.com>

pkgname=sessiond
pkgver=0.6.1
pkgrel=2
pkgdesc="Standalone X session manager for systemd-logind"
arch=("x86_64")
url="https://sessiond.org/"
license=("GPL" 'custom:GPL3 or any later version')
depends=(python wireplumber dbus-python libxi)
makedepends=(
  git
  systemd
  meson
  perl
  glib2
  libx11
  libxext
  python-setuptools
)
source=(
  "${pkgname}-${pkgver}.tar.gz::https://github.com/jcrd/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
  pod2man.patch
)
sha256sums=(
  d2b8e81eb33c0cbce1e9fcdd37db03b1ec93afb984479f2ab4d7e9ce25d0c5ae
  fe0708f9eada5d72d472ed110e8c53b236746fdca9be8598b89edfa41bdaab09
)
_srcdir="${pkgname}-${pkgver}"
_pydir="python-${pkgname}"

prepare() {
  patch --directory="${_srcdir}" --forward --strip=1 --input="${srcdir}/pod2man.patch"
}

build() {
  arch-meson "${_srcdir}" builddir
  meson compile -C builddir
}

package() {
  meson install -C builddir --destdir "${pkgdir}"
  
  cd "${_srcdir}/${_pydir}"
  python setup.py install --root "${pkgdir}" --optimize=1

  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}