From: Siraaj Khandkar Date: Wed, 25 Sep 2019 19:28:34 +0000 (-0400) Subject: Add snap-strict pkg-list X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=7ae057951fdd06d982422b62e6678f0c74498ea5;p=khome.git Add snap-strict pkg-list --- diff --git a/Makefile b/Makefile index c3b5f06..261b5a5 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ MAKEFLAGS := --no-builtin-rules DEPS := $(wildcard deps/*) -.PHONY: home pkgs_deb_install pkgs_deb_purge pkgs deps $(DEPS) +.PHONY: home pkgs_deb_install pkgs_deb_purge pkgs deps $(DEPS) pkgs_snap_classic pkgs_snap_strict home: @cp -Rp home/bin $(HOME)/ @@ -21,6 +21,7 @@ pkgs: $(MAKE) pkgs_deb_install $(MAKE) pkgs_deb_purge $(MAKE) pkgs_snap_classic + $(MAKE) pkgs_snap_strict pkgs_deb_install: list pkgs-deb-install.list sudo apt install $(shell ./list pkgs-deb-install.list) @@ -31,9 +32,14 @@ pkgs_deb_purge: list pkgs-deb-purge.list pkgs_snap_classic: list pkgs-snap-classic.list @$(MAKE) $(foreach p,$(shell ./list pkgs-snap-classic.list),pkg_snap_classic_$(p)) -# Depends on 'snapd' deb pkg being already installed +pkgs_snap_strict: list pkgs-snap-strict.list + @$(MAKE) $(foreach p,$(shell ./list pkgs-snap-strict.list),pkg_snap_strict_$(p)) + +# 'snap' command comes from 'snapd' deb pkg pkg_snap_classic_%: sudo snap install --classic $* +pkg_snap_strict_%: + sudo snap install $* deps: $(DEPS) diff --git a/pkgs-snap-strict.list b/pkgs-snap-strict.list new file mode 100644 index 0000000..792d600 --- /dev/null +++ b/pkgs-snap-strict.list @@ -0,0 +1 @@ +#