Are you using the file you manually downloaded via your browser on some of these attempts?
I am using the one downloaded by yay, of course.
With each tool, makepkg, yaourt, or yay, which ones work when you don't have some file with that name already in the working directory?
work: makepkg, yaourt
doesn't: yay
All you've really shown us so far is that some file downloaded somehow from some web browser is not correct. This has nothing to do with your initial reported problem.
Actually, you are right. I've downloaded the same file with Firefox and the size is 189.7 MB. This was a Chrome related problem.
Still yay doesn't take the checksum (or the right file of 189.7 MB).
]]>Are you using the file you manually downloaded via your browser on some of these attempts? With each tool, makepkg, yaourt, or yay, which ones work when you don't have some file with that name already in the working directory?
All you've really shown us so far is that some file downloaded somehow from some web browser is not correct. This has nothing to do with your initial reported problem.
]]># Maintainer: Jan Claussen <jan.claussen at web dot de>
# Maintainer: Julian Daube <joposter at gmail dot com>
# Contributer: Jan Claussen jan.claussen at web dot de>
pkgname=plecs-blockset
_pkgname="plecs-blockset"
pkgver=v4.2.6
pkgrel=1
pkgdesc="PLECS integration into MATLAB/Simulink (license needed / no demo version available)"
url='http://www.plexim.com/de/products/plecs_blockset'
arch=('x86_64')
license=('custom')
provides=('plecs-blockset')
depends=('qt4' 'ncurses5-compat-libs' 'zlib')
makedepends=('coreutils')
source=("plecs-blockset.desktop" "plecs-blockset.png" "plecs-blockset.sh" "$pkgname-$pkgver-x86_64.tar.gz::https://www.plexim.com/sites/default/files/packages/plecs-blockset-4-2-6_linux64.tar.gz")
md5sums=('381be723bc77af74c5aca5f070d5925c'
'8ed62f1ce2de47c761c9244531dc154e'
'fa37afb26f11e1dd331e886eb175a2ef'
'c479fbcd1d3b2b8d7c2f6502daaff67e')
sha1sums=('ad2dcabb5ef5c51d48809df6645d4c0b74aabe6e'
'e1d9007695acbf40ce55b47f3724c4de8b5ac270'
'fc44048d6defd161e850bb18bdc132b3dcee6242'
'0820a419091e73bbd37e0e74517b48afc8315ad4')
package() {
# install icon
mkdir -p "$pkgdir/usr/share/pixmaps/"
echo "install icon"
install -m 644 "$srcdir/plecs-blockset.png" "$pkgdir/usr/share/pixmaps/"
# make directory structure for main app
mkdir -p "$pkgdir/usr/share/applications/"
mkdir -p "$pkgdir/opt/plecs-blockset"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/licenses/plecs-blockset"
# install desktop file
echo "install plecs-blockset.desktop"
install -m 664 "$srcdir/plecs-blockset.desktop" "$pkgdir/usr/share/applications/"
echo "install start script"
install -m 555 "$srcdir/plecs-blockset.sh" "$pkgdir/usr/bin/plecs-blockset"
echo "install license.txt"
install -m 664 "$srcdir/plecs/license.txt" "$pkgdir/usr/share/licenses/plecs-blockset/"
rm "$srcdir/plecs/license.txt"
echo "copying plecs dir"
cp "$srcdir/plecs/." "$pkgdir/opt/plecs-blockset" -r
}
I realized that when you directly download the file via a browser, the size of the file is 396.1 MB and its checksum is
$ sha1sum /home/jan/Downloads/plecs-blockset-4-2-6_linux64.tar.gz
0820a419091e73bbd37e0e74517b48afc8315ad4 /home/jan/Downloads/plecs-blockset-4-2-6_linux64.tar.gz
When I use this checksum in the PKGBUILD, the output of makepkg is
$ makepkg
==> Making package: plecs-blockset v4.2.6-1 (Fri May 31 21:50:42 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found plecs-blockset.desktop
-> Found plecs-blockset.png
-> Found plecs-blockset.sh
-> Downloading plecs-blockset-v4.2.6-x86_64.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 189M 100 189M 0 0 9625k 0 0:00:20 0:00:20 --:--:-- 9740k
==> Validating source files with sha1sums...
plecs-blockset.desktop ... Passed
plecs-blockset.png ... Passed
plecs-blockset.sh ... Passed
plecs-blockset-v4.2.6-x86_64.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
The file downloaded by yaourt or yay has a size of 189.7 MB and its checksum is
$ sha1sum plecs-blockset-v4.2.6-x86_64.tar.gz
4f7de4c1680432536ee12b0940aa3df154a58af2 plecs-blockset-v4.2.6-x86_64.tar.gz
The output of makepkg
$ makepkg
==> Making package: plecs-blockset v4.2.6-1 (Fri May 31 21:52:42 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found plecs-blockset.desktop
-> Found plecs-blockset.png
-> Found plecs-blockset.sh
-> Found plecs-blockset-v4.2.6-x86_64.tar.gz
==> Validating source files with sha1sums...
plecs-blockset.desktop ... Passed
plecs-blockset.png ... Passed
plecs-blockset.sh ... Passed
plecs-blockset-v4.2.6-x86_64.tar.gz ... Passed
==> Extracting sources...
-> Extracting plecs-blockset-v4.2.6-x86_64.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
install icon
install plecs-blockset.desktop
install start script
install license.txt
copying plecs dir
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "plecs-blockset"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
^C
==> ERROR: Aborted by user! Exiting...
Passes obviously and the application runs without errors, even though the file size is just half of the size it should be. Yaourt installs and yay doesn't. This is all really weird to me...
]]>Everything seems to work right. Or what else do you mean by "What does makepkg say?"
He means precisely that: what is the output of makepkg when building that package? Provide the full output in code tags. Most notably, we'd want to know if makepkg rejects the checksum.
My links are relevant as it sounds like this is a problem with yay. So you should be reporting this on the yay github page, not here.
I really don't see why one AUR helper would take the checksum and the other wouldn't.
Niether do we, precisely, but the answer is clearly that one of them is broken. Don't use either of them and the problem is solved.
Keep in mind also that we have no idea what is in your "/tmp/yaourt-tmp" or your "Downloads" folders. Show exactly what commands you used that resulted in the different checksums in these two places, and we could likely spot the problem.
]]>I built the package based on https://aur.archlinux.org/packages/plecs-standalone, which does compile with yay. I really don't see why one AUR helper would take the checksum and the other wouldn't. I realized that the checksum differ if I generate them in /tmp/yaourt-tmp or in the Download folder. I don't understand why, because it is the same file.
]]>$ makepkg --printsrcinfo > .SRCINFO
$ git add -f -A
$ git commit -m "Changed checksum back again"
[master c27bf5e] Changed checksum back again
2 files changed, 2 insertions(+), 2 deletions(-)
$ git push
Enter passphrase for key '/home/jan/.ssh/aur':
Specifying objects: 7, Done.
Counting objects: 100% (7/7), Done.
Delta-compression uses up to 8 threads.
Compressing objects: 100% (4/4), Done.
Writing objects: 100% (4/4), 567 bytes | 567.00 KiB/s, Done.
Gesamt 4 (Delta 2), Wiederverwendet 1 (Delta 0)
To ssh://aur.archlinux.org/plecs-blockset.git
52928bb..c27bf5e master -> master