forked from ports/contrib
30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
Plaintext
# Description: A cross-platform, GPU-accelerated terminal emulator
|
|
# URL: https://github.com/alacritty/alacritty
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: fontconfig rust util-linux xorg-libxcb
|
|
|
|
name=alacritty
|
|
version=0.4.3
|
|
release=1
|
|
source=(https://github.com/alacritty/alacritty/archive/v$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
|
|
|
cargo fetch
|
|
env CARGO_INCREMENTAL=0 cargo build --release --locked
|
|
|
|
install -D -m 644 "extra/linux/Alacritty.desktop" "$PKG/usr/share/applications/Alacritty.desktop"
|
|
install -D -m755 "target/release/alacritty" "$PKG/usr/bin/alacritty"
|
|
install -D -m644 "extra/alacritty.man" "$PKG/usr/share/man/man1/alacritty.1"
|
|
install -D -m644 "extra/linux/io.alacritty.Alacritty.appdata.xml" "$PKG/usr/share/appdata/io.alacritty.Alacritty.appdata.xml"
|
|
install -D -m644 "alacritty.yml" "$PKG/usr/share/alacritty/alacritty.yml"
|
|
install -D -m644 "extra/completions/alacritty.bash" "$PKG/usr/share/bash-completion/completions/alacritty"
|
|
install -D -m644 "extra/completions/_alacritty" "$PKG/usr/share/zsh/site-functions/_alacritty"
|
|
install -D -m644 "extra/logo/alacritty-term.svg" "$PKG/usr/share/pixmaps/Alacritty.svg"
|
|
}
|