# Maintainer: orhun # https://github.com/orhun/pkgbuilds pkgname=emptty pkgdesc="Dead simple CLI Display Manager on TTY" pkgver=0.4.1 pkgrel=1 arch=('x86_64') url="https://github.com/tvrzna/emptty" license=('MIT') depends=('pam') makedepends=('go' 'libx11') optdepends=('xorg-server: default display server' 'xorg-xauth: required if using xorg-server' 'util-linux: mcookie required if using xorg-server' 'wayland: alternative to xorg-server') backup=('etc/emptty/conf') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha512sums=('a0e74ad825d06c1743e4659e904e62542394f044f35c045cdd26d8e8108fdaa39ec9abaed12a9ff7ed1d1130e81519808acc41e6d718c2953e74000b3e26ea57') build() { cd "$pkgname-$pkgver" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" make build } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir/" install-all make DESTDIR="$pkgdir/" install-config make DESTDIR="$pkgdir/" install-systemd echo "Disable your DM and run 'systemctl enable emptty' to enable emptty at the next boot" }