2018-10-31 07:38:54 +01:00
|
|
|
install=sudo dnf install --assumeyes
|
2018-11-13 21:25:27 +01:00
|
|
|
copr=sudo dnf copr enable --assumeyes
|
2018-11-11 17:42:31 +01:00
|
|
|
|
|
|
|
.PHONY: all
|
2018-11-30 22:46:32 +01:00
|
|
|
all: rice RPMs/muya.rpm install kitty wal crystal rust diff-so-fancy clean
|
2018-10-31 07:38:54 +01:00
|
|
|
|
|
|
|
.PHONY: rice
|
|
|
|
rice:
|
2018-11-28 00:28:28 +01:00
|
|
|
@${install} pop-gtk-theme pop-icon-theme breeze-cursor-theme
|
|
|
|
@../gnome/.config/gnome/extensions.sh
|
|
|
|
@../gnome/.config/gnome/antialiasing.sh
|
|
|
|
@../gnome/.config/gnome/pop-gtk-theme.sh
|
|
|
|
@../gnome/.config/gnome/breeze-cursor-theme.sh
|
2018-10-31 07:38:54 +01:00
|
|
|
|
2018-11-13 20:38:03 +01:00
|
|
|
.ONESHELL:
|
|
|
|
RPMs/muya.rpm: RPMs/muya.spec
|
|
|
|
@cd RPMs
|
2018-11-13 19:30:00 +01:00
|
|
|
@rm -rfv noarch
|
|
|
|
@fedpkg --release f29 local
|
|
|
|
@mv noarch/*.rpm muya.rpm
|
|
|
|
@rmdir noarch
|
|
|
|
@rm -fv *.src.rpm
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
2018-11-13 20:38:03 +01:00
|
|
|
@${install} RPMs/muya.rpm
|
2018-10-31 07:38:54 +01:00
|
|
|
|
2018-11-13 21:25:27 +01:00
|
|
|
.PHONY: kitty
|
|
|
|
kitty:
|
|
|
|
@${copr} gagbo/kitty-latest
|
|
|
|
@${install} kitty
|
|
|
|
|
2018-11-11 17:42:31 +01:00
|
|
|
.PHONY: wal
|
|
|
|
wal:
|
2018-11-14 21:12:33 +01:00
|
|
|
@pip3 install --user pywal
|
2018-11-11 17:42:31 +01:00
|
|
|
|
|
|
|
.PHONY: crystal
|
|
|
|
crystal:
|
|
|
|
@sudo ./vendor/crystal-setup.sh
|
|
|
|
@${install} crystal
|
|
|
|
|
|
|
|
.PHONY: rust
|
|
|
|
rust:
|
2018-11-13 20:48:24 +01:00
|
|
|
@./vendor/rustup-init.sh -y
|
2018-11-11 17:42:31 +01:00
|
|
|
|
|
|
|
.PHONY: diff-so-fancy
|
|
|
|
diff-so-fancy:
|
|
|
|
@sudo install -Dm 755 ./vendor/diff-so-fancy /usr/bin/diff-so-fancy
|
|
|
|
|
2018-11-30 22:46:32 +01:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@rm -rv ~/rpmbuild
|
|
|
|
|
2018-11-11 17:42:31 +01:00
|
|
|
.PHONY: update
|
|
|
|
update:
|
|
|
|
@mkdir -pv vendor
|
|
|
|
@curl -L https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy -o vendor/diff-so-fancy
|
|
|
|
@curl -L https://sh.rustup.rs -o vendor/rustup-init.sh
|
|
|
|
@curl -L https://dist.crystal-lang.org/rpm/setup.sh -o vendor/crystal-setup.sh
|
|
|
|
@chmod 755 vendor/diff-so-fancy
|
|
|
|
@chmod 755 vendor/rustup-init.sh
|
|
|
|
@chmod 755 vendor/crystal-setup.sh
|