summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a53ddcb0b6f93b0913d586f627a42584349d5d88 (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
# Maintainer: Lorenzo Debertolis <as3ii@gmail.com>
pkgname=emptty-git
_name=emptty
pkgver=0.2.0.r2.gfcc48d0
pkgrel=1
pkgdesc="Dead simple Display Manager running in CLI as TTY login, that starts Xorg or Wayland"
arch=(x86_64)
url="https://github.com/tvrzna/emptty"
license=('MIT')
depends=(pam)
makedepends=(git go make pam)
optdepends=('xorg-server'
            'xorg-xauth: required if using xorgserver'
            'wayland: alternative to xorg')
provides=("emptty")
backup=('etc/emptty/conf')
source=("git+${url}.git")
sha256sums=('SKIP')
validpgpkeys=()

pkgver() {
	cd "$srcdir/$_name"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/$_name"
	make build
}

package() {
	cd "$srcdir/$_name"
	install -DZs "dist/$_name" -m 755 -t "$pkgdir/usr/bin"
    install -DZ res/conf -m 755 -T "$pkgdir/etc/$_name/conf"
    install -D "dist/$_name.1.gz" -t "$pkgdir/usr/share/man/man1"
    install -DZ res/pam -m 644 -T "$pkgdir/etc/pam.d/$_name"
    install -DZ res/systemd-service -m 755 -T "$pkgdir/usr/lib/systemd/system/$_name.service"
    printf "disable your DM and run 'systemctl enable emptty' to enable emptty at the next boot\n"
}