summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eeab74798dd3221e1e17e7dce85b80ab054fd3ad (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
# Maintainer: Piotr Miller <nwg.piotr@gmail.com>
pkgname=('nwg-hello')
pkgver=0.1.10
pkgrel=2
pkgdesc="GTK3-based greeter for greetd written in python"
arch=('any')
url="https://github.com/nwg-piotr/nwg-hello"
license=('MIT')
depends=('greetd' 'python' 'python-gobject' 'gtk3' 'gtk-layer-shell' 'gnome-themes-extra')
makedepends=('python-setuptools' 'python-wheel')
optdepends=('sway: this or hyprland must be installed'
            'hyprland: this or sway must be installed')
source=("$pkgname-$pkgver.tar.gz::https://github.com/nwg-piotr/nwg-hello/archive/v"$pkgver".tar.gz")

md5sums=('c92985de4468818004d8b4d205efb124')

package() {
  cd "${pkgname}-${pkgver}"
  install -D -m 644 -t "$pkgdir"/etc/nwg-hello/ nwg-hello-default.json
  install -D -m 644 -t "$pkgdir"/etc/nwg-hello/ nwg-hello-default.css
  install -D -m 644 -t "$pkgdir"/etc/nwg-hello/ hyprland.conf
  install -D -m 644 -t "$pkgdir"/etc/nwg-hello/ sway-config
  install -D -m 644 -t "$pkgdir"/etc/nwg-hello/ README
  install -D -m 644 -t "$pkgdir"/usr/share/nwg-hello/ nwg.jpg
  install -D -m 644 -t "$pkgdir"/usr/share/nwg-hello/ img/*

  install -d -m 755 "$pkgdir"/var/cache/nwg-hello -o greeter
  install -Dm666 -t "$pkgdir"/var/cache/nwg-hello cache.json -o greeter
  
  install -D -t "$pkgdir"/usr/share/licenses/"$pkgname" LICENSE
  install -D -t "$pkgdir"/usr/share/doc/"$pkgname" README.md
  
  python setup.py install --root="${pkgdir}" --optimize=1
}