2019-01-06 02:52:00 +00:00
|
|
|
TEMP=tmp
|
|
|
|
CONF=.mlvwm
|
2023-09-20 16:46:35 +00:00
|
|
|
BIN=bin
|
2019-01-06 02:52:00 +00:00
|
|
|
PIXMAP=$(CONF)/pixmap
|
2019-07-27 02:12:54 +00:00
|
|
|
PATTERNS=$(CONF)/patterns
|
2019-01-06 02:52:00 +00:00
|
|
|
|
2019-07-27 02:12:54 +00:00
|
|
|
all: pixmap patterns
|
2019-01-06 02:52:00 +00:00
|
|
|
|
|
|
|
pixmap:
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2023-07-28 16:27:00 +00:00
|
|
|
# make the temp directory
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2023-07-28 16:27:00 +00:00
|
|
|
mkdir -p $(TEMP)
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2023-07-28 16:27:00 +00:00
|
|
|
# download & extract mini-icons
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2019-01-06 02:52:00 +00:00
|
|
|
curl -# -L http://www2u.biglobe.ne.jp/~y-miyata/mlvwm/mini-icons.tar.gz -o $(TEMP)/mini-icons.tar.gz
|
|
|
|
tar -C $(PIXMAP) -xzf $(TEMP)/mini-icons.tar.gz
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2023-07-28 16:27:00 +00:00
|
|
|
# download XPM icons from source code repositories
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2019-08-02 18:10:56 +00:00
|
|
|
curl -# -L https://raw.githubusercontent.com/videolan/vlc/master/share/icons/16x16/vlc.xpm -o $(PIXMAP)/vlc.xpm
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2023-08-03 15:13:15 +00:00
|
|
|
# download & convert icons from source code repositories
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2023-07-29 21:54:18 +00:00
|
|
|
curl -# -L https://raw.githubusercontent.com/Swordfish90/cool-retro-term/master/app/icons/32x32/cool-retro-term.png -o $(TEMP)/cool-retro-term.png
|
|
|
|
convert $(TEMP)/cool-retro-term.png -resize 16x16\> $(PIXMAP)/cool-retro-term.xpm
|
2023-08-03 15:13:15 +00:00
|
|
|
curl -# -L https://hg.mozilla.org/releases/mozilla-release/raw-file/tip/browser/branding/official/default16.png -o $(TEMP)/firefox.png
|
|
|
|
convert $(TEMP)/firefox.png $(PIXMAP)/firefox.xpm
|
2023-07-28 16:27:00 +00:00
|
|
|
curl -# -L https://raw.githubusercontent.com/mpv-player/mpv.io/master/source/images/favicon.png -o $(TEMP)/mpv.png
|
|
|
|
convert $(TEMP)/mpv.png -resize 16x16\> $(PIXMAP)/mpv.xpm
|
2024-02-02 02:20:46 +00:00
|
|
|
curl -# -L https://raw.githubusercontent.com/godotengine/godot/master/icon.png -o $(TEMP)/godot.png
|
|
|
|
convert $(TEMP)/godot.png -resize 16x16\> $(PIXMAP)/godot.xpm
|
2023-08-11 18:49:09 +00:00
|
|
|
curl -# -L "https://gitlab.com/qemu-project/qemu/-/raw/master/ui/icons/qemu_16x16.png?ref_type=heads&inline=false" -o $(TEMP)/qemu.png
|
|
|
|
convert $(TEMP)/qemu.png $(PIXMAP)/qemu.xpm
|
2023-09-02 01:08:21 +00:00
|
|
|
curl -# -L https://raw.githubusercontent.com/scummvm/scummvm/master/icons/scummvm.ico -o $(TEMP)/scummvm.ico
|
|
|
|
convert $(TEMP)/scummvm.ico[8] -resize 16x16\> $(PIXMAP)/scummvm.xpm
|
2023-07-29 21:54:18 +00:00
|
|
|
curl -# -L https://raw.githubusercontent.com/zealdocs/zeal/main/assets/freedesktop/16-apps-zeal.png -o $(TEMP)/zeal.png
|
|
|
|
convert $(TEMP)/zeal.png $(PIXMAP)/zeal.xpm
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2023-11-06 04:14:22 +00:00
|
|
|
# download & convert icons from source code archives
|
|
|
|
#
|
|
|
|
curl -# -L http://links.twibright.com/download/links-2.29.tar.gz -o $(TEMP)/links-2.29.tar.gz
|
|
|
|
tar -xzf $(TEMP)/links-2.29.tar.gz -C $(TEMP) links-2.29/linkswin.ico
|
|
|
|
convert $(TEMP)/links-2.29/linkswin.ico[0] $(PIXMAP)/links.xpm
|
|
|
|
#
|
2023-07-28 16:27:00 +00:00
|
|
|
# download & convert website favicons
|
2023-08-11 18:49:09 +00:00
|
|
|
#
|
2023-09-23 03:41:49 +00:00
|
|
|
convert https://play0ad.com/favicon.ico $(PIXMAP)/0ad.xpm
|
2023-07-25 20:19:58 +00:00
|
|
|
convert https://www.chromium.org/favicon.ico $(PIXMAP)/chromium.xpm
|
|
|
|
curl -# -L https://claws-mail.org/favicon.ico -o $(TEMP)/claws-mail-favicon.ico
|
|
|
|
convert $(TEMP)/claws-mail-favicon.ico $(PIXMAP)/claws-mail.xpm
|
2023-07-28 16:27:00 +00:00
|
|
|
curl -# -L https://iridiumbrowser.de/favicon.ico -o $(TEMP)/iridium-favicon.ico
|
2023-07-25 20:19:58 +00:00
|
|
|
convert $(TEMP)/iridium-favicon.ico[2] $(PIXMAP)/iridium.xpm
|
2019-01-06 02:52:00 +00:00
|
|
|
|
2019-07-27 02:12:54 +00:00
|
|
|
patterns:
|
|
|
|
test ! -d $(PATTERNS) && mkdir $(PATTERNS)
|
|
|
|
curl -# -L https://forums.macrumors.com/attachments/mac-os-background-jpg.61609 -o $(PATTERNS)/mac-os-background.jpg
|
2023-07-25 20:35:50 +00:00
|
|
|
curl -# -L https://wallpaperbat.com/img/250263-classic-mac-os-wallpaper.png -o $(PATTERNS)/mac-os-background-hi-res.png
|
2019-07-27 02:12:54 +00:00
|
|
|
curl -# -L https://forums.macrumors.com/attachments/mac-os-default-png.61610 -o $(PATTERNS)/mac-os-default.png
|
2023-07-28 16:27:00 +00:00
|
|
|
curl -# -L https://imgur.com/a/9jYy0/zip -o "$(TEMP)/Mac OS Solid Color Backgrounds.zip"
|
|
|
|
unzip -d $(PATTERNS) "$(TEMP)/Mac OS Solid Color Backgrounds.zip"
|
2019-07-27 02:12:54 +00:00
|
|
|
|
2023-09-20 16:46:35 +00:00
|
|
|
install: install-bin
|
2019-01-06 02:58:27 +00:00
|
|
|
cp -R $(CONF) $(HOME)/
|
2019-01-06 03:11:38 +00:00
|
|
|
ln -fs $(HOME)/$(CONF)/.mlvwmrc $(HOME)/.mlvwmrc
|
2019-01-06 03:17:07 +00:00
|
|
|
sed -i 's@/home2/tak/bin/pixmap@$(HOME)/$(PIXMAP)@g' $(HOME)/$(CONF)/.mlvwmrc
|
2019-01-06 02:52:00 +00:00
|
|
|
|
2023-09-20 16:46:35 +00:00
|
|
|
install-bin:
|
|
|
|
mkdir -p $(HOME)/$(BIN)
|
|
|
|
install -b -B .`date +%Y%m%d-%H%M%S` -m 700 -o $(USER) $(BIN)/mlvwm-* $(HOME)/$(BIN)
|
|
|
|
|
2023-07-25 20:19:58 +00:00
|
|
|
clean: clean-pixmap
|
2019-01-06 06:40:27 +00:00
|
|
|
rm -r $(TEMP)
|
2019-07-27 02:12:54 +00:00
|
|
|
rm -rf $(PATTERNS)
|
2023-07-25 20:19:58 +00:00
|
|
|
|
|
|
|
clean-pixmap:
|
|
|
|
rm $(PIXMAP)/mini*.xpm
|
2023-09-23 03:41:49 +00:00
|
|
|
rm $(PIXMAP)/0ad.xpm
|
2023-07-25 20:19:58 +00:00
|
|
|
rm $(PIXMAP)/chromium.xpm
|
|
|
|
rm $(PIXMAP)/claws-mail.xpm
|
2023-07-29 21:54:18 +00:00
|
|
|
rm $(PIXMAP)/cool-retro-term.xpm
|
2023-08-03 15:13:15 +00:00
|
|
|
rm $(PIXMAP)/firefox.xpm
|
2024-03-04 19:52:40 +00:00
|
|
|
rm $(PIXMAP)/godot.xpm
|
2023-07-25 20:19:58 +00:00
|
|
|
rm $(PIXMAP)/iridium.xpm
|
2023-11-06 04:14:22 +00:00
|
|
|
rm $(PIXMAP)/links.xpm
|
2023-07-28 16:27:00 +00:00
|
|
|
rm $(PIXMAP)/mpv.xpm
|
2023-08-11 18:49:09 +00:00
|
|
|
rm $(PIXMAP)/qemu.xpm
|
2023-09-02 01:08:21 +00:00
|
|
|
rm $(PIXMAP)/scummvm.xpm
|
2023-07-25 20:19:58 +00:00
|
|
|
rm $(PIXMAP)/vlc.xpm
|
2023-07-26 13:54:31 +00:00
|
|
|
rm $(PIXMAP)/zeal.xpm
|
2023-07-25 20:19:58 +00:00
|
|
|
|