1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ntfy_ynh.git synced 2024-09-03 19:46:27 +02:00
ntfy_ynh/tools/update_src.sh

21 lines
530 B
Bash
Raw Normal View History

2023-02-20 15:31:36 +01:00
#!/bin/bash
VERSION=$1
CHECKSUMS=`wget https://github.com/binwiederhier/ntfy/releases/download/v$VERSION/checksums.txt -q -O -`
src() {
cat << SH > conf/$1.src
SOURCE_URL=https://github.com/binwiederhier/ntfy/releases/download/v${VERSION}/ntfy_${VERSION}_linux_${2}.tar.gz
SOURCE_SUM=`echo "$CHECKSUMS" | grep ${VERSION}_linux_${2}.tar.gz | cut -d " " -f 1`
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=ntfy_${VERSION}_linux_${2}
SH
}
2023-07-03 09:06:36 +02:00
src amd64 amd64
2023-02-20 15:31:36 +01:00
src arm64 arm64
src armhf armv7