diff options
author | Jakob Kukla | 2022-11-25 19:53:42 +0100 |
---|---|---|
committer | Jakob Kukla | 2022-11-25 19:53:42 +0100 |
commit | 2b1c4320ac58c59fde28b2804ce9f437844ecb13 (patch) | |
tree | a02fa4c8980536cc3c3f3fbe10615a4ab607a82c | |
download | aur-2b1c4320ac58c59fde28b2804ce9f437844ecb13.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 33 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 57 | ||||
-rw-r--r-- | remove-gtk-csds.patch | 133 |
4 files changed, 227 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..73327ac92184 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,33 @@ +pkgbase = alacritty-no-gtk-csds + pkgdesc = A cross-platform, GPU-accelerated terminal emulator (without GTK-like CSDs) + pkgver = 0.11.0 + pkgrel = 0 + url = https://github.com/alacritty/alacritty + arch = x86_64 + license = Apache + checkdepends = ttf-dejavu + makedepends = git + makedepends = rust + makedepends = cargo + makedepends = cmake + makedepends = ncurses + makedepends = desktop-file-utils + makedepends = gdb + makedepends = libxcb + depends = freetype2 + depends = fontconfig + depends = libxi + depends = libxcursor + depends = libxkbcommon + depends = libxrandr + optdepends = ncurses: for alacritty terminfo database + provides = alacritty + conflicts = alacritty + source = alacritty-no-gtk-csds::git+https://github.com/alacritty/alacritty.git#tag=v0.11.0?signed + source = remove-gtk-csds.patch + validpgpkeys = 4DAA67A9EA8B91FCC15B699C85CDAE3C164BA7B4 + validpgpkeys = A56EF308A9F1256C25ACA3807EA8F8B94622A6A9 + sha256sums = SKIP + sha256sums = 7f1238805121480c25f00c3c4cb6ff193192152cce1f156542c4d73a194a449d + +pkgname = alacritty-no-gtk-csds diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..2dfb72a78dd5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg +src +alacritty-no-gtk-csds +alacritty-*.tar.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4d62cca0e512 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Jakob Kukla <jakob [dot] kukla [at] gmail [dot] com> + +# This is a fork of the official alacritty PKGBUILD. Original maintainers and contributors: +### Christian Rebischke <chris.rebischke@archlinux.org> +### Jiachen YANG <farseerfc@archlinux.org> +### Daniel M. Capella <polyzen@archlinux.org> +### kpcyrd <git@rxv.cc> +### quininer <quininer@live.com> +pkgname='alacritty-no-gtk-csds' +pkgdesc="A cross-platform, GPU-accelerated terminal emulator (without GTK-like CSDs)" +pkgver=0.11.0 +pkgrel=0 +arch=('x86_64') +url="https://github.com/alacritty/alacritty" +license=('Apache') +makedepends=('git' 'rust' 'cargo' 'cmake' 'ncurses' 'desktop-file-utils' 'gdb' 'libxcb') +depends=('freetype2' 'fontconfig' 'libxi' 'libxcursor' 'libxkbcommon' 'libxrandr') +checkdepends=('ttf-dejavu') # for monospace fontconfig test +optdepends=('ncurses: for alacritty terminfo database') +provides=('alacritty') +conflicts=('alacritty') +source=("$pkgname::git+$url.git#tag=v$pkgver?signed" + 'remove-gtk-csds.patch') +validpgpkeys=('4DAA67A9EA8B91FCC15B699C85CDAE3C164BA7B4' # Christian Dürr <contact@christianduerr.com> + 'A56EF308A9F1256C25ACA3807EA8F8B94622A6A9') # Kirill Chibisov <contact@kchibisov.com> +sha256sums=('SKIP' + '7f1238805121480c25f00c3c4cb6ff193192152cce1f156542c4d73a194a449d') + +prepare() { + cd "$pkgname" + patch --forward --strip=1 --input="${srcdir}/remove-gtk-csds.patch" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build(){ + cd "$pkgname" + CARGO_INCREMENTAL=0 cargo build --release --locked --offline +} + +check(){ + cd "$pkgname" + CARGO_INCREMENTAL=0 cargo test --locked --offline +} + +package() { + cd "$pkgname" + desktop-file-install -m 644 --dir "$pkgdir/usr/share/applications/" "extra/linux/Alacritty.desktop" + install -D -m755 "target/release/alacritty" "$pkgdir/usr/bin/alacritty" + install -D -m644 "extra/alacritty.man" "$pkgdir/usr/share/man/man1/alacritty.1" + install -D -m644 "extra/alacritty-msg.man" "$pkgdir/usr/share/man/man1/alacritty-msg.1" + install -D -m644 "extra/linux/org.alacritty.Alacritty.appdata.xml" "$pkgdir/usr/share/appdata/org.alacritty.Alacritty.appdata.xml" + install -D -m644 "alacritty.yml" "$pkgdir/usr/share/doc/alacritty/example/alacritty.yml" + install -D -m644 "extra/completions/alacritty.bash" "$pkgdir/usr/share/bash-completion/completions/alacritty" + install -D -m644 "extra/completions/_alacritty" "$pkgdir/usr/share/zsh/site-functions/_alacritty" + install -D -m644 "extra/completions/alacritty.fish" "$pkgdir/usr/share/fish/vendor_completions.d/alacritty.fish" + install -D -m644 "extra/logo/alacritty-term.svg" "$pkgdir/usr/share/pixmaps/Alacritty.svg" +} diff --git a/remove-gtk-csds.patch b/remove-gtk-csds.patch new file mode 100644 index 000000000000..7a3e117da3dd --- /dev/null +++ b/remove-gtk-csds.patch @@ -0,0 +1,133 @@ +From e17be3ea4931d1ca375943385cd50d77e622d98e Mon Sep 17 00:00:00 2001 +From: Jakob Kukla <jakob.kukla@gmail.com> +Date: Fri, 25 Nov 2022 19:06:40 +0100 +Subject: [PATCH] Patch: Remove gtk-like wayland CSDs + +--- + Cargo.lock | 65 -------------------------------------------- + alacritty/Cargo.toml | 1 - + 2 files changed, 66 deletions(-) + +diff --git a/Cargo.lock b/Cargo.lock +index 9a32a263c6..93bf14823b 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -94,18 +94,6 @@ dependencies = [ + "winapi 0.3.9", + ] + +-[[package]] +-name = "arrayref" +-version = "0.3.6" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" +- +-[[package]] +-name = "arrayvec" +-version = "0.5.2" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" +- + [[package]] + name = "atty" + version = "0.2.14" +@@ -147,12 +135,6 @@ version = "3.11.0" + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d" + +-[[package]] +-name = "bytemuck" +-version = "1.12.1" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "2f5715e491b5a1598fc2bef5a606847b5dc1d48ea625bd3c02c00de8285591da" +- + [[package]] + name = "calloop" + version = "0.10.1" +@@ -1416,15 +1398,6 @@ version = "1.0.11" + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" + +-[[package]] +-name = "safe_arch" +-version = "0.5.2" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "c1ff3d6d9696af502cc3110dacce942840fb06ff4514cad92236ecc455f2ce05" +-dependencies = [ +- "bytemuck", +-] +- + [[package]] + name = "same-file" + version = "1.0.6" +@@ -1446,18 +1419,6 @@ version = "1.1.0" + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" + +-[[package]] +-name = "sctk-adwaita" +-version = "0.4.2" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "04b7c47a572f73de28bee5b5060d085b42b6ce1e4ee2b49c956ea7b25e94b6f0" +-dependencies = [ +- "crossfont", +- "log", +- "smithay-client-toolkit", +- "tiny-skia", +-] +- + [[package]] + name = "semver" + version = "1.0.14" +@@ -1680,31 +1641,6 @@ dependencies = [ + "syn", + ] + +-[[package]] +-name = "tiny-skia" +-version = "0.7.0" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "642680569bb895b16e4b9d181c60be1ed136fa0c9c7f11d004daf053ba89bf82" +-dependencies = [ +- "arrayref", +- "arrayvec", +- "bytemuck", +- "cfg-if 1.0.0", +- "png", +- "safe_arch", +- "tiny-skia-path", +-] +- +-[[package]] +-name = "tiny-skia-path" +-version = "0.7.0" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "c114d32f0c2ee43d585367cb013dfaba967ab9f62b90d9af0d696e955e70fa6c" +-dependencies = [ +- "arrayref", +- "bytemuck", +-] +- + [[package]] + name = "toml" + version = "0.5.8" +@@ -2057,7 +1993,6 @@ dependencies = [ + "percent-encoding", + "raw-window-handle 0.4.3", + "raw-window-handle 0.5.0", +- "sctk-adwaita", + "serde", + "smithay-client-toolkit", + "wasm-bindgen", +diff --git a/alacritty/Cargo.toml b/alacritty/Cargo.toml +index fd6c19d7d5..c9ccae7f89 100644 +--- a/alacritty/Cargo.toml ++++ b/alacritty/Cargo.toml +@@ -74,6 +74,5 @@ wayland = [ + "copypasta/wayland", + "glutin/wayland", + "glutin/wayland-dlopen", +- "glutin/wayland-csd-adwaita", + "wayland-client"] + nightly = [] + |