Package Details: docker-slim 1.40.11-1

Git Clone URL: https://aur.archlinux.org/docker-slim.git (read-only, click to copy)
Package Base: docker-slim
Description: Minify and Secure Docker containers
Upstream URL: https://github.com/docker-slim/docker-slim
Licenses: Apache
Submitter: leledumbo
Maintainer: leledumbo
Last Packager: leledumbo
Votes: 2
Popularity: 0.000000
First Submitted: 2019-12-11 05:08 (UTC)
Last Updated: 2024-02-24 12:48 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

leledumbo commented on 2022-02-14 04:21 (UTC)

@carlosal: it's the other way around, see "First Submitted" above

carlosal1015 commented on 2022-01-19 01:59 (UTC)

Duplicate of https://aur.archlinux.org/packages/docker-slim-bin ?

psYchotic commented on 2021-10-24 22:54 (UTC) (edited on 2021-10-24 22:54 (UTC) by psYchotic)

I've had trouble with this package due to the fact that the upstream package name is simply dist_linux.tar.gz. Because of this, I was unable to update, as the package had been downloaded previously (as part of running makepkg for the previous version), and makepkg saw the file was already present, so it wouldn't download again. This led to a hash mismatch error.

Besides the fact that this was a problem for me, the Arch wiki also has something to say about situations like these:

Warning: The downloaded source filename must be unique because the SRCDEST directory can be the same for all packages. For instance, using the version number of the project as a filename potentially conflicts with other projects with the same version number. In this case, the alternative unique filename to be used is provided with the syntax source=('unique_package_name::file_uri'); e.g. source=("$pkgname-$pkgver.tar.gz::https://github.com/coder/program/archive/v$pkgver.tar.gz").

Source: https://wiki.archlinux.org/title/PKGBUILD#source

So my request is to apply the following diff:

diff --git a/PKGBUILD b/PKGBUILD
index 13739af..7314e65 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ arch=('x86_64')
 url="https://github.com/docker-slim/docker-slim"
 license=('apache')
 depends=()
-source=("https://downloads.dockerslim.com/releases/${pkgver}/dist_linux.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://downloads.dockerslim.com/releases/${pkgver}/dist_linux.tar.gz")
 sha256sums=('dfe3a833699e645eac0116fc42d609928bdb84bbc1859afa11a87700a8b03598')

 package() {