Skip to content

Instantly share code, notes, and snippets.

@postadelmaga
Created April 29, 2026 07:54
Show Gist options
  • Select an option

  • Save postadelmaga/0eda9309e2715ce5abbf369f7c0e5051 to your computer and use it in GitHub Desktop.

Select an option

Save postadelmaga/0eda9309e2715ce5abbf369f7c0e5051 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for Antigravity using official tarball (v1.23.2)
#!/bin/bash
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
# Allow users to override command-line flags
if [[ -f $XDG_CONFIG_HOME/antigravity-flags.conf ]]; then
ANTIGRAVITY_USER_FLAGS="$(cat "$XDG_CONFIG_HOME/antigravity-flags.conf")"
fi
exec /opt/Antigravity/antigravity "$ANTIGRAVITY_USER_FLAGS" "$@"
# Maintainer: AlphaLynx <alphalynx at alphalynx dot dev>
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=antigravity
pkgver=1.23.2
_buildver=4781536860569600
pkgrel=1
pkgdesc='An agentic development platform from Google, evolving the IDE into the agent-first era.'
arch=(x86_64)
url='https://antigravity.google/'
license=(LicenseRef-Google-Antigravity)
depends=(alsa-lib
at-spi2-core
bash
cairo
curl
dbus
expat
glib2
glibc
gtk3
libcups
libgcc
libsecret
libsoup3
libstdc++
libx11
libxcb
libxcomposite
libxdamage
libxext
libxfixes
libxkbcommon
libxkbfile
libxrandr
mesa
nspr
nss
openssl
pango
systemd-libs
util-linux-libs
webkit2gtk-4.1)
options=(!strip !debug)
source=("antigravity.sh")
source_x86_64=("Antigravity-${pkgver}.tar.gz::https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/${pkgver}-${_buildver}/linux-x64/Antigravity.tar.gz")
sha256sums=('c2b22b196a76fb886d969c25d79e1409b6671b624a50007a47f9498331afb9fb')
sha256sums_x86_64=('5232a4048ff4fa15685d9a981ba4fba573e297f3efc9b76f638e794baf775725')
prepare() {
# Create .desktop file as it's not in the portable tarball
cat > "${pkgname}.desktop" <<EOF
[Desktop Entry]
Name=Antigravity
Exec=/usr/bin/antigravity %U
Terminal=false
Type=Application
Icon=antigravity
StartupWMClass=antigravity
Comment=An agentic development platform from Google
Categories=Development;IDE;
MimeType=x-scheme-handler/antigravity;
EOF
}
package() {
# Install application files to /opt
install -d "$pkgdir/opt/Antigravity"
cp -a Antigravity/* "$pkgdir/opt/Antigravity/"
# Wrapper
install -Dm755 "$srcdir/antigravity.sh" "$pkgdir/usr/bin/$pkgname"
# Licenses
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s /opt/Antigravity/resources/app/LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
ln -s /opt/Antigravity/LICENSES.chromium.html -t "$pkgdir/usr/share/licenses/$pkgname"
# Desktop file and Icon
install -Dm644 "${pkgname}.desktop" -t "$pkgdir/usr/share/applications"
install -Dm644 "Antigravity/resources/app/resources/linux/code.png" "$pkgdir/usr/share/pixmaps/antigravity.png"
# Shell completions
install -Dm644 "Antigravity/resources/completions/bash/antigravity" -t "$pkgdir/usr/share/bash-completion/completions"
install -Dm644 "Antigravity/resources/completions/zsh/_antigravity" -t "$pkgdir/usr/share/zsh/site-functions"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment