Skip to content

Commit d6017b3

Browse files
Add recipe for Alacritty
1 parent ed561f7 commit d6017b3

File tree

3 files changed

+97
-0
lines changed

3 files changed

+97
-0
lines changed

recipes/alacritty/alacritty.icns

650 KB
Binary file not shown.

recipes/alacritty/menu.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://schemas.conda.org/menuinst/menuinst-1-1-0.schema.json",
3+
"menu_name": "Alacritty",
4+
"menu_items": [
5+
{
6+
"name": "Alacritty",
7+
"description": "A cross-platform, OpenGL terminal emulator.",
8+
"icon": "{{ MENU_DIR }}/alacritty.{{ ICON_EXT }}",
9+
"command": [
10+
"{{ PREFIX }}/bin/alacritty"
11+
],
12+
"platforms": {
13+
"osx": {
14+
"CFBundleIdentifier": "org.alacritty-__PKG_MAJOR_VER__",
15+
"CFBundleVersion": "__PKG_VERSION__",
16+
"NSSupportsAutomaticGraphicsSwitching": true
17+
},
18+
"linux": {
19+
"Categories": [
20+
"TerminalEmulator",
21+
"System"
22+
],
23+
"GenericName": "Terminal",
24+
"StartupNotify": true,
25+
"StartupWMClass": "Alacritty"
26+
},
27+
"win": {
28+
"desktop": true
29+
}
30+
}
31+
}
32+
]
33+
}

recipes/alacritty/recipe.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
context:
2+
version: "0.15.1"
3+
4+
package:
5+
name: alacritty
6+
version: ${{ version }}
7+
8+
source:
9+
url: https://github.com/alacritty/alacritty/archive/refs/tags/v${{ version }}.tar.gz
10+
sha256: b814e30c6271ae23158c66e0e2377c3600bb24041fa382a36e81be564eeb2e36
11+
12+
build:
13+
number: 0
14+
script:
15+
- if: unix
16+
then: |
17+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BUILD_PREFIX/lib/pkgconfig"
18+
cargo-bundle-licenses --format yaml --output ${SRC_DIR}/THIRDPARTY.yml
19+
mkdir -p "${PREFIX}/Menu"
20+
sed -e "s/__PKG_VERSION__/${PKG_VERSION}/g" -e "s/__PKG_MAJOR_VER__/${PKG_VERSION%%.*}/g" "${RECIPE_DIR}/menu.json" > "${PREFIX}/Menu/${PKG_NAME}_menu.json"
21+
install -m0644 "${RECIPE_DIR}/alacritty.icns" "${PREFIX}/Menu/alacritty.icns"
22+
cargo install --locked --path ./alacritty --target ${CARGO_BUILD_TARGET} --root ${PREFIX}
23+
rm -rf target
24+
else: |
25+
cargo-bundle-licenses --format yaml --output "%SRC_DIR%\THIRDPARTY.yml"
26+
mkdir "%PREFIX%\Menu"
27+
powershell -Command "(Get-Content '%RECIPE_DIR%\menu.json') -replace '__PKG_VERSION__', '%PKG_VERSION%' -replace '__PKG_MAJOR_VER__', '%PKG_VERSION:~0,1%' | Set-Content '%PREFIX%\Menu\%PKG_NAME%_menu.json'"
28+
copy "%RECIPE_DIR%\alacritty.icns" "%PREFIX%\Menu\alacritty.icns"
29+
cargo install --locked --path .\alacritty --root %PREFIX%
30+
rmdir /s /q target
31+
32+
requirements:
33+
build:
34+
- ${{ compiler('rust') }}
35+
- ${{ stdlib('c') }}
36+
- cargo-bundle-licenses
37+
- pkg-config
38+
host:
39+
- if: linux
40+
then:
41+
- fontconfig
42+
- libfreetype6
43+
- libxcb
44+
- libxkbcommon
45+
46+
tests:
47+
- script:
48+
- alacritty --version
49+
50+
about:
51+
homepage: https://alacritty.org/
52+
repository: https://github.com/raphamorim/alacritty
53+
documentation: https://alacritty.org/
54+
license: Apache-2.0 OR MIT
55+
license_file:
56+
- LICENSE-MIT
57+
- LICENSE-APACHE
58+
- THIRDPARTY.yml
59+
description: "A cross-platform, OpenGL terminal emulator."
60+
summary: "A cross-platform, OpenGL terminal emulator."
61+
62+
extra:
63+
recipe-maintainers:
64+
- VasanthakumarV

0 commit comments

Comments
 (0)