diff options
Diffstat (limited to 'systemd-zfs-partition-backup')
-rw-r--r-- | systemd-zfs-partition-backup/AUR/PKGBUILD | 5 | ||||
-rwxr-xr-x | systemd-zfs-partition-backup/AUR/getsha256sum.sh | 21 |
2 files changed, 24 insertions, 2 deletions
diff --git a/systemd-zfs-partition-backup/AUR/PKGBUILD b/systemd-zfs-partition-backup/AUR/PKGBUILD index f9d7315..918497f 100644 --- a/systemd-zfs-partition-backup/AUR/PKGBUILD +++ b/systemd-zfs-partition-backup/AUR/PKGBUILD | |||
@@ -12,8 +12,9 @@ depends=( | |||
12 | 'kbd' | 12 | 'kbd' |
13 | 'mkinitcpio' | 13 | 'mkinitcpio' |
14 | ) | 14 | ) |
15 | source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.bz2") | 15 | source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") |
16 | sha256sums=('a734c145709687c5621f430d3baec3105977984dfbb35348beab4b793aeb8e1b') | 16 | sha256sums=('80c5a14dbbccc1f0164557cf2f4f31ab45c3b08aa577e60a54d198bac01ca91b') |
17 | echo "test" | ||
17 | 18 | ||
18 | package() { | 19 | package() { |
19 | install -D zfs-bash-tools-master/${pkgname}.sh ../pkg/${pkgname}/usr/bin/${pkgname}.sh | 20 | install -D zfs-bash-tools-master/${pkgname}.sh ../pkg/${pkgname}/usr/bin/${pkgname}.sh |
diff --git a/systemd-zfs-partition-backup/AUR/getsha256sum.sh b/systemd-zfs-partition-backup/AUR/getsha256sum.sh new file mode 100755 index 0000000..92760b3 --- /dev/null +++ b/systemd-zfs-partition-backup/AUR/getsha256sum.sh | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/usr/bin/bash | ||
2 | # source PKGBUILD | ||
3 | # function allsha() { | ||
4 | # for i in $source | ||
5 | # do | ||
6 | # printf "'%s' " "$(wget -q -O- "$i" | sha256sum | awk '/-$/{ print $1 }')" | ||
7 | # done | ||
8 | # } | ||
9 | # | ||
10 | # allsha | tee /tmp/output.txt | ||
11 | |||
12 | |||
13 | ARCHIVE=$(mktemp --suffix=.tar.bz2) | ||
14 | |||
15 | cd $(git rev-parse --show-toplevel) | ||
16 | git archive -o "$ARCHIVE" master | ||
17 | cd - > /dev/null | ||
18 | |||
19 | cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }' | ||
20 | rm $ARCHIVE | ||
21 | |||