Build t3code-bin for aarch64
This commit is contained in:
3 files changed
+104
-16
No files matched your search
@@ -1,18 +1,19 @@
|
||||
# Maintainer: David Heinemeier Hansson <david@hey.com>
|
||||
|
||||
# T3 Code ships Linux as an AppImage and nothing else, so Omarchy unpacks it and
|
||||
# T3 Code ships its Linux desktop as an AppImage, so Omarchy unpacks it and
|
||||
# keeps only the Electron tree. AppRun, the compatibility libraries bundled for
|
||||
# distributions that do not ship their own, and the AppImage's icon shims are all
|
||||
# dead weight here. .omarchy/upstream.sh rewrites the version and checksum below
|
||||
# from the release feed the app updates itself from.
|
||||
# dead weight here. .omarchy/upstream.sh rewrites the version and checksums below
|
||||
# from the release feeds the app updates itself from.
|
||||
|
||||
pkgname=t3code-bin
|
||||
pkgver=0.0.42
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Open-source control plane for coding agents"
|
||||
arch=('x86_64')
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://t3.codes"
|
||||
license=('MIT')
|
||||
makedepends=('7zip')
|
||||
|
||||
depends=(
|
||||
'alsa-lib'
|
||||
@@ -54,19 +55,28 @@ provides=("t3code=${pkgver}")
|
||||
conflicts=('t3code')
|
||||
options=('!debug' '!strip')
|
||||
|
||||
_appimage="T3-Code-${pkgver}-x86_64.AppImage"
|
||||
_appimage_x86_64="T3-Code-${pkgver}-x86_64.AppImage"
|
||||
_appimage_aarch64="T3-Code-${pkgver}-arm64.AppImage"
|
||||
source=('t3code-launcher.sh' 't3-launcher.sh' 'LICENSE')
|
||||
source_x86_64=("${_appimage}::https://github.com/pingdotgg/t3code/releases/download/v${pkgver}/${_appimage}")
|
||||
noextract=("${_appimage}")
|
||||
source_x86_64=("https://github.com/pingdotgg/t3code/releases/download/v${pkgver}/${_appimage_x86_64}")
|
||||
source_aarch64=("https://github.com/pingdotgg/t3code/releases/download/v${pkgver}/${_appimage_aarch64}")
|
||||
noextract=("${_appimage_x86_64}" "${_appimage_aarch64}")
|
||||
sha256sums=('cb905ff341372ef2ef6e402cf485959f8bd1df8f0efebee4cda1afdd5e6abc0a'
|
||||
'c5b3f2a9f0b14b12cfd973b79319f0f018b7ae49a1d43d8ca346100c3f7de28f'
|
||||
'935d8f2af0c703f9c39517ee57cc4930b19d02d533be930b63f0e82f93614b43')
|
||||
sha256sums_x86_64=('8dc1fccdabc2ed3a59a3944cc772ef11931b9351401c0963ed305d5f96e3cdf4')
|
||||
sha256sums_aarch64=('c256d872d358e9f2c91328b0154c6311fa2eb16386ef6f788fcda12d73cf2836')
|
||||
|
||||
prepare() {
|
||||
chmod +x "${srcdir}/${_appimage}"
|
||||
local _appimage
|
||||
case "$CARCH" in
|
||||
x86_64) _appimage="${_appimage_x86_64}" ;;
|
||||
aarch64) _appimage="${_appimage_aarch64}" ;;
|
||||
esac
|
||||
rm -rf "${srcdir}/squashfs-root"
|
||||
"${srcdir}/${_appimage}" --appimage-extract >/dev/null
|
||||
# Extract without executing the runtime: AppImage's ELF magic does not match
|
||||
# QEMU's binfmt registration when building ARM packages on an x86_64 host.
|
||||
7z x "${srcdir}/${_appimage}" -o"${srcdir}/squashfs-root" >/dev/null
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
Reference in new issue
Block a user