Skip to content

Commit bd51cda

Browse files
authored
build: update pkgbuild for amazon-q (#434)
1 parent 90007ec commit bd51cda

File tree

9 files changed

+58
-46
lines changed

9 files changed

+58
-46
lines changed

bundle/archlinux/PKGBUILD.headless.template

Lines changed: 0 additions & 21 deletions
This file was deleted.

bundle/archlinux/PKGBUILD.template

Lines changed: 0 additions & 20 deletions
This file was deleted.

bundle/archlinux/full/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src/
2+
pkg/
3+
*.tar.gz

bundle/archlinux/full/PKGBUILD

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Maintainer: Grant Gurvis <[email protected]>
2+
3+
pkgname='amazon-q'
4+
pkgver='1.6.0'
5+
pkgrel=1
6+
pkgdesc='Add autocomplete and AI to your existing terminal on macOS & Linux'
7+
arch=('x86_64')
8+
url='https://github.com/aws/amazon-q-developer-cli'
9+
license=('MIT OR Apache-2.0')
10+
depends=('gtk3' 'webkit2gtk-4.1' 'libappindicator-gtk3' 'ibus' 'xdg-utils')
11+
makedepends=('jq' 'xz')
12+
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
13+
sha256sums=('$aur_sha256sum')
14+
15+
package() {
16+
# this script has not been updated for amazon q
17+
exit 1
18+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src/
2+
pkg/
3+
*.tar.gz
4+
*.tar.zst

bundle/archlinux/minimal/PKGBUILD

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Maintainer: Grant Gurvis <[email protected]>
2+
3+
pkgname='amazon-q-minimal'
4+
pkgver='1.6.0'
5+
pkgrel=1
6+
pkgdesc='Add autocomplete and AI to your existing terminal on macOS & Linux'
7+
arch=('x86_64')
8+
url='https://github.com/aws/amazon-q-developer-cli'
9+
license=('MIT OR Apache-2.0')
10+
provides=('amazon-q')
11+
conflicts=('amazon-q')
12+
makedepends=(cargo)
13+
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
14+
sha256sums=('3c00eff341f2bf908048be22380e20c79a7d8ec7940a9dbe72de34458a48d65b')
15+
# lto is disabled due to ring issue (https://github.com/briansmith/ring/issues/1444)
16+
options=('!lto')
17+
18+
prepare() {
19+
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
20+
}
21+
22+
build() {
23+
export CARGO_TARGET_DIR=target
24+
cargo build --frozen --release --bin q_cli --bin figterm
25+
}
26+
27+
package() {
28+
install -Dm755 "$srcdir/target/release/q_cli" "$pkgdir/usr/bin/q"
29+
install -Dm755 "$srcdir/target/release/figterm" "$pkgdir/usr/bin/qterm"
30+
}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[Trigger]
22
Operation = Remove
33
Type = Package
4-
Target = fig
4+
Target = amazon-q
55

66
[Action]
77
When = PostTransaction
8-
Exec = killall fig_desktop
8+
Exec = killall q-desktop

bundle/archlinux/usr/share/libalpm/hooks/fig-pre-uninstall.hook renamed to bundle/archlinux/usr/share/libalpm/hooks/amazon-q-pre-uninstall.hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Trigger]
22
Operation = Remove
33
Type = Package
4-
Target = fig
4+
Target = amazon-q
55

66
[Action]
77
When = PreTransaction

bundle/linux/minimal/usr/share/licenses/codewhisperer/LICENSE

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)