Remove update script, there is updpkgsums for this job

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-11-28 00:18:57 +01:00
parent c5f84dba39
commit bfd28f6224
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 8 additions and 45 deletions

View file

@ -21,16 +21,14 @@ source=(
"DejaVu-Sans-Mono-Bold-Oblique-Nerd-Font-Complete-Mono.ttf::${raw_url}/Bold-Italic/complete/DejaVu%20Sans%20Mono%20Bold%20Oblique%20Nerd%20Font%20Complete%20Mono.ttf"
"DejaVu-Sans-Mono-Bold-Oblique-Nerd-Font-Complete.ttf::${raw_url}/Bold-Italic/complete/DejaVu%20Sans%20Mono%20Bold%20Oblique%20Nerd%20Font%20Complete.ttf"
)
sha512sums=(
'ca49cf5ef4c71d6b1d843ad39b70438bb68024d51ccfb12fb190b7788e7d8434c9bdd76baa092d34bcbcad76922703dc67d0e7fadc317592ed7f32abc4a399c9'
'4be46f414d03094d22e67d945f23d466282e38853881a99db26078e807ef500d07df650b3af2cf2d8fbf3453fa485d9480b58f3f633577c705d0ce2b0fba9323'
'2dc6be508e3a7339abe67b17b52bbf43907d6ff808451ff9d57089d3510d15b948873d5e1105803405b2bafa16088eff879d4e225d8b285e0c857431d2148f76'
'db613f98c6bc53910e6ff93d97addfa2305947f8063bbfd78fe26a901ac15cac434d4681def34a0fba033752900f35b58ac3ff2f2a6d33644638fa7d5db44662'
'948753687f8065d22ea0a8e794524a505db54f7d700238c1c01112d74ef37bc13cc84916d663c36859b44aff71cb56e75bf8652641d99d06aafcb02d836dd61a'
'10995c35eb356ce8d73c3e1fb2b849d26531845190552fc6907f10740fe3deadc7ca5829b24720e47af8b720b6e76ff539320b0fc85df10398794aa446a85955'
'b4c99a64c7518b2c7d5325639930df79c57b9a5da53a478aa22c70ca8278dfbae3ede2c7fd1481299427404ce70b2a2b62df9c9a7dbeb2e62e4b96fe0c66ef90'
'd0446a09a2aed03eb4162a226c151685065d418157d76816af034f7961a209021536aefbe161cfa035265d645327459487821b71454ce5d56f650dc4ef711e9c'
)
sha512sums=('ca49cf5ef4c71d6b1d843ad39b70438bb68024d51ccfb12fb190b7788e7d8434c9bdd76baa092d34bcbcad76922703dc67d0e7fadc317592ed7f32abc4a399c9'
'4be46f414d03094d22e67d945f23d466282e38853881a99db26078e807ef500d07df650b3af2cf2d8fbf3453fa485d9480b58f3f633577c705d0ce2b0fba9323'
'2dc6be508e3a7339abe67b17b52bbf43907d6ff808451ff9d57089d3510d15b948873d5e1105803405b2bafa16088eff879d4e225d8b285e0c857431d2148f76'
'db613f98c6bc53910e6ff93d97addfa2305947f8063bbfd78fe26a901ac15cac434d4681def34a0fba033752900f35b58ac3ff2f2a6d33644638fa7d5db44662'
'948753687f8065d22ea0a8e794524a505db54f7d700238c1c01112d74ef37bc13cc84916d663c36859b44aff71cb56e75bf8652641d99d06aafcb02d836dd61a'
'10995c35eb356ce8d73c3e1fb2b849d26531845190552fc6907f10740fe3deadc7ca5829b24720e47af8b720b6e76ff539320b0fc85df10398794aa446a85955'
'b4c99a64c7518b2c7d5325639930df79c57b9a5da53a478aa22c70ca8278dfbae3ede2c7fd1481299427404ce70b2a2b62df9c9a7dbeb2e62e4b96fe0c66ef90'
'd0446a09a2aed03eb4162a226c151685065d418157d76816af034f7961a209021536aefbe161cfa035265d645327459487821b71454ce5d56f650dc4ef711e9c')
package() {

View file

@ -1,35 +0,0 @@
#!/bin/bash
set -euxo pipefail
VER=$(awk -F '=' '/^pkgver/{ print $2 }' PKGBUILD)
# Use ZIP to fetch shasums as git repo is huge
curl -sSfL https://github.com/ryanoasis/nerd-fonts/archive/v${VER}.tar.gz | tar -xvz --wildcards 'nerd-fonts-*/patched-fonts/DejaVuSansMono/*'
function cleanup() {
rm -rf \
nerd-fonts-*/ \
.source.tmp \
.hash512sum.tmp
}
trap cleanup EXIT
IFS=$'\n'
for file in $(find nerd-fonts-* -name '*.ttf' ! -name '*Windows*'); do
urlpart=$(echo "$file" | sed 's/^.*DejaVuSansMono//;s/ /%20/g')
sanitized=$(basename "$file" | sed 's/ /-/g')
hashsum=$(sha512sum $file | cut -d ' ' -f 1)
echo " \"${sanitized}::\${raw_url}${urlpart}\"" >>.source.tmp
echo " '${hashsum}'" >>.hash512sum.tmp
done
set +x
echo "source=("
cat .source.tmp
echo -e ")\nsha512sums=("
cat .hash512sum.tmp
echo ")"