summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3cbdff8e91ceb8b07c13e8a8454db6835602d135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Maintainer: AlphaLynx <alphalynx at alphalynx dot dev>
# Maintainer: Manuel Barrio Linares <mbarriolinares at gmail dot com>
# Contributor: HurricanePootis <hurricanepootis@protonmail.com>

pkgname=antigravity-ide
pkgver=2.1.1
pkgrel=1
pkgdesc='An agentic development platform from Google, evolving the IDE into the agent-first era'
arch=(aarch64 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)
conflicts=('antigravity<2.0')
options=(!strip !debug)
install=$pkgname.install
source=(antigravity-ide.sh
        antigravity-ide.desktop
        antigravity-ide-url-handler.desktop
        antigravity-ide.appdata.xml
        antigravity-ide-workspace.xml)
_build=6123990880747520
source_x86_64=($pkgname-$pkgver-x86_64.tar.gz::https://dl.google.com/release2/j0qc3/antigravity/stable/$pkgver-$_build/linux-x64/Antigravity%20IDE.tar.gz)
source_aarch64=($pkgname-$pkgver-aarch64.tar.gz::https://dl.google.com/release2/j0qc3/antigravity/stable/$pkgver-$_build/linux-arm/Antigravity%20IDE.tar.gz)
b2sums=('20a33a75e654ffb6535cd415d52b06559cb681da84eace78702fea50d5362ad23b478c8308bd4b7c48820d8a01c84b5643e754f561e0afa843a5495a694ca86e'
        '5047eb55fc8d0a9288c852ddb6fb32cb41915d97d600d3e40c8b52dbbb0efa6ffb173439a2511b44d39b539655f3f2f0bd569da95023da2373e29da69f68be5f'
        'ccd8e86e6acc9e542428377b3fadc743b8b2e7d59e6aa96c9aa21a8b743af9532aefdfdab062bb296515bdf0752e2b3208b888869bae4a55b4ddd07652d5f37f'
        '8d082784596cfe67fe48e409d780ae03f6e6c9aa999412d9b2a47bfcdb6357a08a5abf9c4fd90e2c49df5ecbd98c179c43a6bcc38e477aace24f4ba23a481a6c'
        'f6ed182fbf1463a24dc5545c71d7924b1e9b7c9832d25bfe09974a63c72385dfecbe0b609a492717348178ba6b61601f4ccea53d3f2942dd330567da40be6e95')
b2sums_aarch64=('48e331bccfc78be22b5fa6778d2c4c2e31bcefd31fdda699e255f5ef52de5af66ed965599de1154e8ae0bbeeaa1634d4d9bf297741ca924db77147510aeb1d55')
b2sums_x86_64=('f4824f97635589990848e3f88544a51e59c11da0de9135f16220b68b342c311d4fa4d1e0b36271629ce40824d715553eca11213f5c7469b691869d776bc6d411')

package() {
    install -d "$pkgdir/opt"
    cp -a "Antigravity IDE" "$pkgdir/opt/antigravity-ide"
    rm -r "$pkgdir/opt/antigravity-ide/resources/completions"

    install -Dm755 antigravity-ide.sh "$pkgdir/usr/bin/$pkgname"

    install -d "$pkgdir/usr/share/licenses/$pkgname"
    ln -s /opt/antigravity-ide/resources/app/LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
    ln -s /opt/antigravity-ide/LICENSES.chromium.html -t "$pkgdir/usr/share/licenses/$pkgname"

    install -Dm644 $pkgname.desktop -t "$pkgdir/usr/share/applications"
    install -Dm644 $pkgname-url-handler.desktop -t "$pkgdir/usr/share/applications"
    install -Dm644 $pkgname.appdata.xml -t "$pkgdir/usr/share/metainfo"
    install -Dm644 $pkgname-workspace.xml -t "$pkgdir/usr/share/mime/packages"

    cd "Antigravity IDE"
    install -Dm644 resources/completions/bash/$pkgname -t "$pkgdir/usr/share/bash-completion/completions"
    install -Dm644 resources/completions/zsh/_$pkgname -t "$pkgdir/usr/share/zsh/site-functions"
    install -Dm644 resources/app/resources/linux/code.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
}