Remove checksums for HTML files to prevent broken build

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-05-25 14:19:07 +02:00
parent 60afb56468
commit e831086741
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
3 changed files with 6 additions and 4 deletions

View file

@ -16,8 +16,8 @@ pkgbase = discord
source = LICENSE.html::https://discordapp.com/terms source = LICENSE.html::https://discordapp.com/terms
source = OSS-LICENSES.html::https://discordapp.com/licenses source = OSS-LICENSES.html::https://discordapp.com/licenses
sha512sums = 4f220ecd0e0c9fcd793ed065055479391506d9401b75ca541cde4136d0290f2720fccca87139091faf269fdb2c020adb5b7333710a31ca603ce8552f3dd4841b sha512sums = 4f220ecd0e0c9fcd793ed065055479391506d9401b75ca541cde4136d0290f2720fccca87139091faf269fdb2c020adb5b7333710a31ca603ce8552f3dd4841b
sha512sums = eec33beb8259bce6f6a5dcaf44ae4715644ded0eba7f8c90427efccf78bad6a86f7c46b105731387ceccd25fd89e213ee82a2ef38f5f16d32ee049f69564be87 sha512sums = SKIP
sha512sums = 394b94635b6368b87abff7e8203bf3b64f9bb12eb9d81cbb66762c75d3d8eb52f46d71ca0975e077a7596b5e376914613c833a0ca6676a5217d41b44258793f3 sha512sums = SKIP
pkgname = discord pkgname = discord

View file

@ -16,8 +16,8 @@ source=("https://dl.discordapp.net/apps/linux/$pkgver/$pkgname-$pkgver.tar.gz"
'LICENSE.html::https://discordapp.com/terms' 'LICENSE.html::https://discordapp.com/terms'
'OSS-LICENSES.html::https://discordapp.com/licenses') 'OSS-LICENSES.html::https://discordapp.com/licenses')
sha512sums=('4f220ecd0e0c9fcd793ed065055479391506d9401b75ca541cde4136d0290f2720fccca87139091faf269fdb2c020adb5b7333710a31ca603ce8552f3dd4841b' sha512sums=('4f220ecd0e0c9fcd793ed065055479391506d9401b75ca541cde4136d0290f2720fccca87139091faf269fdb2c020adb5b7333710a31ca603ce8552f3dd4841b'
'eec33beb8259bce6f6a5dcaf44ae4715644ded0eba7f8c90427efccf78bad6a86f7c46b105731387ceccd25fd89e213ee82a2ef38f5f16d32ee049f69564be87' 'SKIP'
'394b94635b6368b87abff7e8203bf3b64f9bb12eb9d81cbb66762c75d3d8eb52f46d71ca0975e077a7596b5e376914613c833a0ca6676a5217d41b44258793f3') 'SKIP')
prepare() { prepare() {
cd $_pkgname cd $_pkgname

View file

@ -34,6 +34,8 @@ sed -i \
# Update source hashes # Update source hashes
updpkgsums updpkgsums
# Remove checksums for HTML files (they change all the time)
sed -i -e "/sha512sums/,/)/ {s/ '.*'/ 'SKIP'/}" PKGBUILD
# Update .SRCINFO # Update .SRCINFO
makepkg --printsrcinfo >.SRCINFO makepkg --printsrcinfo >.SRCINFO