uwu

hardware bitcoin wallet software and build system
git clone https://git.parazyd.org/uwu
Log | Files | Refs | README | LICENSE

commit cd0c04cfbcb7c16e082db131ec23cc8d02e0c266
parent f9127ae9d2cc5c96b59c12097e1633a718e2393c
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 21 Nov 2020 01:48:54 +0100

Add alpine makefile.

Diffstat:
Aalpine.mk | 26++++++++++++++++++++++++++
1 file changed, 26 insertions(+), 0 deletions(-)

diff --git a/alpine.mk b/alpine.mk @@ -0,0 +1,26 @@ +# Copyright (c) 2020 Ivan J. <parazyd@dyne.org> +# This file is part of uwu. +# See LICENSE file for copyright and license details. + +ALPINE_TAR = alpine-minirootfs-$(ALPINE_VER)-armhf.tar.gz +ALPINE_SIG = alpine-minirootfs-$(ALPINE_VER)-armhf.tar.gz.asc +ALPINE_SHA = alpine-minirootfs-$(ALPINE_VER)-armhf.tar.gz.sha256 + +ALPINE_BINS = $(ALPINE_TAR) $(ALPINE_SIG) $(ALPINE_SHA) + +$(ALPINE_TAR): + wget -c https://nl.alpinelinux.org/alpine/v$(ALPINE_MAJ)/releases/armhf/$(ALPINE_TAR) + +$(ALPINE_SIG): + wget -c https://nl.alpinelinux.org/alpine/v$(ALPINE_MAJ)/releases/armhf/$(ALPINE_SIG) + +$(ALPINE_SHA): + wget -c https://nl.alpinelinux.org/alpine/v$(ALPINE_MAJ)/releases/armhf/$(ALPINE_SHA) + +alpinechroot: $(ALPINE_BINS) + sha256sum -c $(ALPINE_SHA) + gpg --no-default-keyring --keyring=./verification_keyring.gpg \ + --verify $(ALPINE_SIG) + mkdir -p $@ + ( cd $@ && sudo tar xf ../$(ALPINE_TAR) ) + sudo chown $(USER):$(USER) $@