2018-11-28 00:45:17 +01:00
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
@cd PKGBUILDs/${package} && makepkg -scif --noconfirm
|
|
|
|
|
2018-12-07 08:51:53 +01:00
|
|
|
.ONESHELL:
|
|
|
|
aur:
|
|
|
|
@mkdir -p .aur && cd .aur
|
|
|
|
@git clone "https://aur.archlinux.org/${package}.git"
|
|
|
|
@cd ${package}
|
|
|
|
@echo "==================================== Viewing ${package}"
|
|
|
|
@cat PKGBUILD
|
|
|
|
@echo "===================================="
|
|
|
|
@echo -n "Press enter to continue, or Ctrl+C to quit. " && read
|
|
|
|
@makepkg -sc
|
|
|
|
@sudo pacman -U *.pkg.tar.xz
|
|
|
|
|
2018-11-28 00:45:17 +01:00
|
|
|
.PHONY: update-keys
|
|
|
|
update-keys:
|
|
|
|
@sudo pacman-key --populate
|
|
|
|
@sudo pacman-key --refresh-keys
|
|
|
|
|
2018-12-07 21:29:37 +01:00
|
|
|
# https://old.reddit.com/r/archlinux/comments/5r5ep8
|
|
|
|
# 1. Disable bitmap fonts (not scalable for modern HiDPI displays)
|
|
|
|
# 2. Enable sub-pixel RGB rendering
|
|
|
|
# 3. Enable the LCD filter (reduces color fringing)
|
|
|
|
.PHONY: fontconfig
|
|
|
|
fontconfig:
|
|
|
|
@sudo ln -sf /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d
|
|
|
|
@sudo ln -sf /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d
|
|
|
|
@sudo ln -sf /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d
|
|
|
|
|
2018-12-07 21:59:10 +01:00
|
|
|
# 1. Always use emoji (best with the kitty terminal emulator)
|
|
|
|
# 2. Install global packages to /usr/local
|
|
|
|
.PHONY: yarnconfig
|
|
|
|
yarnconfig:
|
|
|
|
@yarn config set -- --emoji true
|
|
|
|
@yarn config set prefix /usr/local
|
|
|
|
|
2018-11-28 00:45:17 +01:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@rm -fv **/*.pkg.tar.xz
|
|
|
|
@rm -fv **/*.xpi
|
|
|
|
@rm -fv **/*.tar.gz
|
|
|
|
@rm -fv **/*.tar.bz2
|
|
|
|
@rm -fv **/*.vim
|
2018-12-07 08:51:53 +01:00
|
|
|
@rm -rfv .aur
|