summaryrefslogtreecommitdiff
path: root/alacritty/Pkgfile
blob: f47024c497d17159c32e93e2157be9ab471c3c52 (plain)
    1 # Description: A cross-platform, GPU-accelerated terminal emulator
    2 # URL: https://github.com/alacritty/alacritty
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: fontconfig rust util-linux xorg-libxcb
    5 
    6 name=alacritty
    7 version=0.7.2
    8 release=1
    9 source=(https://github.com/alacritty/alacritty/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   cd $name-$version
   13 
   14   prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
   15   mkdir $PKGMK_SOURCE_DIR/rust || true
   16   export CARGO_HOME=$PKGMK_SOURCE_DIR/rust
   17 
   18   cargo update
   19   cargo fetch
   20   env CARGO_INCREMENTAL=0 cargo build --release --locked
   21 
   22   install -D -m755 target/release/alacritty \
   23     $PKG/usr/bin/alacritty
   24   install -D -m644 extra/alacritty.man $PKG/usr/share/man/man1/alacritty.1
   25   install -D -m644 extra/linux/io.alacritty.Alacritty.appdata.xml \
   26     $PKG/usr/share/appdata/io.alacritty.Alacritty.appdata.xml
   27 
   28   install -D -m644 alacritty.yml \
   29     $PKG/usr/share/alacritty/alacritty.yml
   30   install -D -m 644 extra/linux/Alacritty.desktop \
   31     $PKG/usr/share/applications/Alacritty.desktop
   32   install -D -m644 extra/logo/alacritty-term.svg \
   33     $PKG/usr/share/pixmaps/Alacritty.svg
   34 
   35   # install auto-completion files if the ports for it are installed
   36   if [ -e /bin/zsh || /usr/bin/zsh ]; then
   37     install -D -m644 extra/completions/_alacritty \
   38       $PKG/usr/share/zsh/site-functions/_alacritty
   39   fi
   40   if [ -e /usr/lib/pkgconfig/bash-completion.pc ]; then
   41     install -D -m644 extra/completions/alacritty.bash \
   42       $PKG/usr/share/bash-completion/completions/alacritty
   43   fi
   44 }

Generated by cgit