MIT permits redistribution, so its binary packages may be redistributed. Signed-off-by: Zakk <zakk@gentoozh.org>
37 lines
819 B
Bash
37 lines
819 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="A terminal-based coding agent with multi-model support"
|
|
HOMEPAGE="https://github.com/earendil-works/pi"
|
|
SRC_URI="
|
|
amd64? ( https://github.com/earendil-works/pi/releases/download/v${PV}/pi-linux-x64.tar.gz -> ${P}-amd64.tar.gz )
|
|
arm64? ( https://github.com/earendil-works/pi/releases/download/v${PV}/pi-linux-arm64.tar.gz -> ${P}-arm64.tar.gz )
|
|
"
|
|
S="${WORKDIR}"/pi
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64 ~arm64"
|
|
IUSE="+system-fd"
|
|
RESTRICT="strip"
|
|
|
|
RDEPEND="
|
|
x11-libs/libxcb
|
|
system-fd? ( sys-apps/fd )
|
|
"
|
|
|
|
QA_PREBUILT="
|
|
opt/${PN}/pi
|
|
opt/${PN}/native/linux/prebuilds/*/*.node
|
|
"
|
|
|
|
src_install() {
|
|
insinto /opt/${PN}
|
|
doins -r .
|
|
fperms +x /opt/${PN}/pi
|
|
|
|
dosym ../${PN}/pi /opt/bin/pi
|
|
}
|