blob: 1ad2b8056ba40d52ece90e245ce3494c954b3bb0 (
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
|
# Maintainer: Luis Gustavo S. Barreto <gustavosbarreto@gmail.com>
# Maintainer: Leandro Cunha <leandrocunha016@gmail.com>
# Maintainer: Mark Allen Park <markallenpark@gmail.com>
pkgname=docker-desktop
pkgver=4.37.0
_revision=178034
pkgrel=1
pkgdesc="Docker Desktop is an easy-to-install application that enables you to locally build and share containerized applications and microservices."
arch=('x86_64')
url="https://www.docker.com/products/docker-desktop/"
license=('custom: Docker Agreement')
depends=('docker>=24.0.6' 'curl' 'qemu>=8.0.4' 'libseccomp' 'libcap-ng' 'pass' 'desktop-file-utils' 'gtk3' 'libx11' 'shadow')
conflicts=('docker-compose' 'docker-buildx')
provides=('docker-compose' 'docker-buildx')
makedepends=('w3m')
install='docker-desktop.install'
source=("$pkgname-$pkgver-x86_64.tar.zst::https://desktop.docker.com/linux/main/amd64/$_revision/$pkgname-x86_64.pkg.tar.zst")
sha256sums=('12d8e3669a0a59d146cdfb61ead7885a23f1768a5da6f6c061577ebed42afe36')
package() {
install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/share/applications"
install -d "${pkgdir}/usr/lib/systemd/user"
install -d "${pkgdir}/usr/lib/docker/cli-plugins"
install -m644 "${srcdir}/usr/lib/systemd/user/docker-desktop.service" "${pkgdir}/usr/lib/systemd/user/docker-desktop.service"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-buildx" "${pkgdir}/usr/lib/docker/cli-plugins/docker-buildx"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-compose" "${pkgdir}/usr/lib/docker/cli-plugins/docker-compose"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-debug" "${pkgdir}/usr/lib/docker/cli-plugins/docker-debug"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-desktop" "${pkgdir}/usr/lib/docker/cli-plugins/docker-desktop"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-dev" "${pkgdir}/usr/lib/docker/cli-plugins/docker-dev"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-extension" "${pkgdir}/usr/lib/docker/cli-plugins/docker-extension"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-feedback" "${pkgdir}/usr/lib/docker/cli-plugins/docker-feedback"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-init" "${pkgdir}/usr/lib/docker/cli-plugins/docker-init"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-sbom" "${pkgdir}/usr/lib/docker/cli-plugins/docker-sbom"
install -m755 "${srcdir}/usr/lib/docker/cli-plugins/docker-scout" "${pkgdir}/usr/lib/docker/cli-plugins/docker-scout"
install -m755 "${srcdir}/usr/bin/docker-credential-desktop" "${pkgdir}/usr/bin/docker-credential-desktop"
cp -r "${srcdir}/opt" "${pkgdir}"
cp "${srcdir}/usr/share/applications/"* "${pkgdir}/usr/share/applications/"
# License (thanks @FabioLolix)
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
w3m -dump https://www.docker.com/legal/docker-subscription-service-agreement/ \
> "$pkgdir/usr/share/licenses/$pkgname/docker-agreement.txt"
}
|