summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3109fd179f1def3a04c8ebc037b165f41a985cc3 (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
# Maintainer: Piotr Miller <nwg.piotr@gmail.com>
pkgname=('nwg-hello')
pkgver=0.1.6
pkgrel=1
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=('6b73f21c506d6550e639ea152ab6ed91')

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
  
  python setup.py install --root="${pkgdir}" --optimize=1
}