zot-bin: Add arm64 support

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2024-03-29 00:22:33 +01:00
parent 817890a648
commit 791459b949
2 changed files with 18 additions and 5 deletions

View File

@@ -7,14 +7,25 @@ MY_PN="${PN/-bin/}"
DESCRIPTION="A production-ready vendor-neutral OCI-native container image/artifact registry"
HOMEPAGE="https://github.com/project-zot/zot"
SRC_URI="
SRC_URI_AMD64="
https://github.com/project-zot/zot/releases/download/v${PV}/zot-linux-amd64 -> zot-${PV}-linux-amd64
https://github.com/project-zot/zot/releases/download/v${PV}/zli-linux-amd64 -> zli-${PV}-linux-amd64
"
SRC_URI_ARM64="
https://github.com/project-zot/zot/releases/download/v${PV}/zot-linux-arm64 -> zot-${PV}-linux-arm64
https://github.com/project-zot/zot/releases/download/v${PV}/zli-linux-arm64 -> zli-${PV}-linux-arm64
"
SRC_URI="
amd64? (${SRC_URI_AMD64})
arm64? (${SRC_URI_ARM64})
"
SLOT="0"
LICENSE="Apache-2.0"
KEYWORDS="amd64"
KEYWORDS="amd64 arm64"
S="${WORKDIR}"
QA_PRESTRIPPED="
@@ -28,8 +39,8 @@ DEPEND="
"
src_install() {
newsbin "${DISTDIR}/zot-${PV}-linux-amd64" zot
newbin "${DISTDIR}/zli-${PV}-linux-amd64" zli
newsbin "${DISTDIR}/zot-${PV}-linux-${ARCH}" zot
newbin "${DISTDIR}/zli-${PV}-linux-${ARCH}" zli
newinitd "${FILESDIR}/${MY_PN}.initd" ${MY_PN}
newconfd "${FILESDIR}/${MY_PN}.confd" ${MY_PN}