# Maintainer: Antoine POPINEAU pkgname=greetd-tuigreet pkgver=0.3.1 pkgrel=2 pkgdesc='A console UI greeter for greetd' url='https://github.com/apognu/tuigreet' license=(GPL3) conflicts=(greetd-tuigreet-bin greetd-tuigreet-git) arch=(x86_64) makedepends=(rust) source=("${url}/archive/${pkgver}.tar.gz" 'tuigreet.conf') sha256sums=('7ee71be9719d99950028724300090faa4b5a281ebf1cb9b1564f74b636754c6c' '8f83aee7874aab5d06981a1d1cd05df906368a79dbca90d157a33a2f023b67d3') build() { cd "tuigreet-${pkgver}" cargo build --release } package() { install -Dm755 "${srcdir}/tuigreet-${pkgver}/target/release/tuigreet" "${pkgdir}/usr/bin/tuigreet" install -Dm644 "${srcdir}/tuigreet-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/tuigreet/LICENSE" install -Dm644 "${srcdir}/tuigreet.conf" "${pkgdir}/usr/lib/tmpfiles.d/tuigreet.conf" }