Skip to content

Commit 5578ec2

Browse files
Add recipe for Alacritty
1 parent ed561f7 commit 5578ec2

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-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: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
# Collate licenses
16+
- cargo-bundle-licenses --format yaml --output ${SRC_DIR}/THIRDPARTY.yml
17+
18+
# Menuinst related commands
19+
- if: unix
20+
then: |
21+
mkdir -p "${PREFIX}/Menu"
22+
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"
23+
install -m0644 "${RECIPE_DIR}/alacritty.icns" "${PREFIX}/Menu/alacritty.icns"
24+
else: |
25+
mkdir "%PREFIX%\Menu"
26+
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'"
27+
copy "%RECIPE_DIR%\alacritty.icns" "%PREFIX%\Menu\alacritty.icns"
28+
29+
# Building the rust binary file
30+
- cargo install --locked --path ./alacritty --target ${CARGO_BUILD_TARGET} --root ${PREFIX}
31+
- rm -rf target
32+
33+
requirements:
34+
build:
35+
- ${{ compiler('rust') }}
36+
- ${{ stdlib('c') }}
37+
- cargo-bundle-licenses
38+
host:
39+
- if: linux
40+
then:
41+
- cmake
42+
- pkg-config
43+
- libfreetype6
44+
- fontconfig
45+
- libxcb
46+
- libxkbcommon
47+
48+
tests:
49+
- script:
50+
- alacritty --version
51+
52+
about:
53+
homepage: https://alacritty.org/
54+
repository: https://github.com/raphamorim/alacritty
55+
documentation: https://alacritty.org/
56+
license: Apache-2.0 OR MIT
57+
license_file:
58+
- LICENSE-MIT
59+
- LICENSE-APACHE
60+
- THIRDPARTY.yml
61+
description: "A cross-platform, OpenGL terminal emulator."
62+
summary: "A cross-platform, OpenGL terminal emulator."
63+
64+
extra:
65+
recipe-maintainers:
66+
- VasanthakumarV

0 commit comments

Comments
 (0)