blob: 63a4cddd2b5ff40a5940e9871915a4574277c73e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: ZhangHua <zhanghuadedn at gmail dot com>
# Contributor: Juliette Cordor
pkgname=("podman-desktop")
pkgver=1.3.1
pkgrel=1
pkgdesc="Manage Podman and other container engines from a single UI and tray."
arch=('x86_64' 'aarch64')
url=https://github.com/containers/podman-desktop
license=('Apache-2.0')
depends=()
makedepends=('yarn' 'git' 'python' 'npm')
optdepends=(
"podman: podman plugin"
"crc: crc plugin"
"lima: lima plugin"
"docker: docker plugin"
)
source=(
"git+${url}#tag=v${pkgver}"
"podman-desktop.desktop"
)
sha256sums=('SKIP'
'f520d11b747dc29bcc63dd7d75f235e446104f924142be4ecc6f26b23e3a7c1c')
build(){
cd "${srcdir}/podman-desktop"
yarn --frozen-lockfile --network-timeout 180000
yarn run compile
}
package_podman-desktop(){
depends+=(
# Electron depends
"c-ares" "gtk3" "libevent" "nss" "wayland" "fontconfig" "woff2" "aom" "brotli"
"libjpeg" "icu" "dav1d" "flac" "snappy" "libxml2" "ffmpeg" "libwebp" "minizip"
"opus" "harfbuzz" "re2" "libavif" "jsoncpp" "libxslt" "libpng" "freetype2"
)
optdepends+=(
# Electron optdepends
"kde-cli-tools: file deletion support (kioclient5)"
"libappindicator-gtk3: StatusNotifierItem support"
"pipewire: WebRTC desktop sharing under Wayland"
"qt5-base: enable Qt5 with --enable-features=AllowQt"
"trash-cli: file deletion support (trash-put)"
"xdg-utils: open URLs with desktop’s default (xdg-email, xdg-open)"
)
case ${CARCH} in
x86_64)
_arch=-
;;
aarch64)
_arch=-arm64-
;;
*)
_arch=-${CARCH}-
;;
esac
cd "${srcdir}/podman-desktop"
mkdir -p "${pkgdir}/opt/podman-desktop"
mkdir -p "${pkgdir}/usr/bin"
cp -a dist/linux${_arch}unpacked/* "${pkgdir}/opt/podman-desktop"
install -Dm644 "${srcdir}/podman-desktop.desktop" \
"${pkgdir}/usr/share/applications/podman-desktop.desktop"
install -Dm644 "${srcdir}/podman-desktop/buildResources/icon.svg" \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/podman-desktop.svg"
ln -s /opt/podman-desktop/podman-desktop "${pkgdir}/usr/bin/podman-desktop"
}
|