Commit 86514a21 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play: add podman-desktop (eterbug #18636)

parent 68d21193
#!/bin/sh
PKGNAME=podman-desktop
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="is the best free and open source tool to work with Containers and Kubernetes for developers."
URL="https://podman-desktop.io/"
. $(dirname $0)/common.sh
arch="$(epm print info --debian-arch)"
case "$arch" in
arm64)
file="podman-desktop-${VERSION}-arm64.tar.gz"
pattern="$file"
;;
amd64)
# For amd64, the Podman Desktop archive has no architecture suffix.
# Create a pattern that will not match ARM64.
file="podman-desktop-${VERSION}.tar.gz"
pattern='podman-desktop-[0-9]+\.[0-9]+\.[0-9]+\.tar\.gz'
;;
esac
if [ "$VERSION" = "*" ] ; then
PKGURL=$(get_github_url "https://github.com/containers/podman-desktop" "$pattern")
else
PKGURL="https://github.com/containers/podman-desktop/releases/download/v${VERSION}/${file}"
fi
install_pkgurl
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common-chromium-browser.sh
move_to_opt "/podman-desktop*"
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Type=Application
Name=Podman Desktop
Exec=$PRODUCT
Icon=$PRODUCT
Terminal=false
StartupWMClass=Podman Desktop
Categories=Utility;
EOF
epm tool eget -O - https://raw.githubusercontent.com/podman-desktop/podman-desktop/refs/heads/main/buildResources/icon.svg | create_file /usr/share/icons/hicolor/scalable/apps/$PRODUCT.svg
add_bin_link_command
add_chromium_deps
add_libs_requires
add_requires '/usr/bin/podman'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment