24 lines
763 B
Plaintext
24 lines
763 B
Plaintext
# Description: Graphical console greeter for greetd
|
|
# URL: https://github.com/apognu/tuigreet
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: greetd
|
|
|
|
name=tuigreet
|
|
version=0.8.0
|
|
release=1
|
|
source=(https://github.com/apognu/tuigreet/archive/$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
|
|
|
cargo build --release --manifest-path $name-$version/Cargo.toml
|
|
|
|
install -Dt $PKG/usr/bin $name-$version/target/release/$name
|
|
|
|
prt-get isinst scdoc && (
|
|
scdoc < "$name-$version/contrib/man/$name-1.scd"> $SRC/$name-1.roff
|
|
install -Dm755 $SRC/$name-1.roff $PKG/usr/share/man/man1/$name.1) || true
|
|
}
|