39 lines
1.7 KiB
Plaintext
39 lines
1.7 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 libxkbcommon rust util-linux xorg-libxcb
|
|
# Optional: bash-completion zsh
|
|
|
|
name=alacritty
|
|
version=0.10.1
|
|
release=1
|
|
_commit=2844606db8201d40462a01b29299ac3c5a52c523
|
|
source=(https://github.com/alacritty/alacritty/archive/$_commit/$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 update --manifest-path $name-$_commit/Cargo.toml
|
|
cargo build --release --locked --manifest-path \
|
|
$name-$_commit/Cargo.toml
|
|
|
|
install -D -m755 $name-$_commit/target/release/alacritty $PKG/usr/bin/alacritty
|
|
install -D -m644 $name-$_commit/extra/alacritty.man $PKG/usr/share/man/man1/alacritty.1
|
|
install -D -m644 $name-$_commit/extra/linux/io.alacritty.Alacritty.appdata.xml \
|
|
$PKG/usr/share/appdata/io.alacritty.Alacritty.appdata.xml
|
|
|
|
# install auto-completion files if the ports for it are installed
|
|
prt-get isinst zsh && install -D -m644 $name-$_commit/extra/completions/_alacritty \
|
|
$PKG/usr/share/zsh/site-functions/_alacritty
|
|
prt-get isinst bash-completion && install -D -m644 $name-$_commit/extra/completions/alacritty.bash \
|
|
$PKG/usr/share/bash-completion/completions/alacritty
|
|
|
|
install -D -m644 $name-$_commit/alacritty.yml $PKG/usr/share/alacritty/alacritty.yml
|
|
install -D -m 644 $name-$_commit/extra/linux/Alacritty.desktop \
|
|
$PKG/usr/share/applications/Alacritty.desktop
|
|
install -D -m644 $name-$_commit/extra/logo/alacritty-term.svg \
|
|
$PKG/usr/share/pixmaps/Alacritty.svg
|
|
}
|