flatten homepage heirarchy
This commit is contained in:
parent
c402360844
commit
1b386eeffc
@ -5,8 +5,7 @@ packages:
|
|||||||
- python3
|
- python3
|
||||||
tasks:
|
tasks:
|
||||||
- package: |
|
- package: |
|
||||||
make -C src/homepage generate
|
make -C src dist/homepage.tar.gz
|
||||||
tar cvz --exclude .git -C src/homepage . >site.tar.gz
|
|
||||||
ls -l site.tar.gz
|
ls -l site.tar.gz
|
||||||
- upload: |
|
- upload: |
|
||||||
hut pages publish -d trinity.moe site.tar.gz
|
hut pages publish -d trinity.moe homepage.tar.gz
|
||||||
|
95
Makefile
95
Makefile
@ -2,10 +2,18 @@
|
|||||||
CC = cc
|
CC = cc
|
||||||
CFLAGS = -Iinclude/ -Ilib/ -g -Wall -Wextra -Wpedantic
|
CFLAGS = -Iinclude/ -Ilib/ -g -Wall -Wextra -Wpedantic
|
||||||
HOME = /home/trinity
|
HOME = /home/trinity
|
||||||
MAKE = gmake
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
|
||||||
|
all:
|
||||||
|
|
||||||
|
HOMEPAGE_FILES = homepage favicon.ico banners/*
|
||||||
|
dist/homepage.tar.gz:
|
||||||
|
mkdir -p dist/homepage
|
||||||
|
cp $(HOMEPAGE_FILES) dist/homepage
|
||||||
|
cd dist/homepage; sh homepage; cd ../..
|
||||||
|
tar cvz -C dist/homepage . >dist/homepage.tar.gz
|
||||||
|
|
||||||
# i made this script to fetch icons for my grandmother and put them in icons/
|
# i made this script to fetch icons for my grandmother and put them in icons/
|
||||||
# so i wouldn't have to fetch the icons for her desktop when i made her a new
|
# so i wouldn't have to fetch the icons for her desktop when i made her a new
|
||||||
# system.
|
# system.
|
||||||
@ -110,8 +118,8 @@ $(PREFIX)/src/arduino18:
|
|||||||
mv "$(PREFIX)"/arduino-1.8.19 "$(PREFIX)"/arduino18
|
mv "$(PREFIX)"/arduino-1.8.19 "$(PREFIX)"/arduino18
|
||||||
|
|
||||||
$(PREFIX)/bin/bar:
|
$(PREFIX)/bin/bar:
|
||||||
git clone https://github.com/LemonBoy/bar.git $(PREFIX)/src/bar
|
git clone https://github.com/LemonBoy/bar.git "$(PREFIX)"/src/bar
|
||||||
$(MAKE) -C $(PREFIX)/src/bar PREFIX=$(PREFIX) install
|
$(MAKE) -C "$(PREFIX)"/src/bar PREFIX="$(PREFIX)" install
|
||||||
|
|
||||||
# depends on
|
# depends on
|
||||||
# apk:clang
|
# apk:clang
|
||||||
@ -125,8 +133,41 @@ $(PREFIX)/bin/bar:
|
|||||||
# apk:xcb-util-keysyms-devel
|
# apk:xcb-util-keysyms-devel
|
||||||
# apk:xcb-util-wm-devel
|
# apk:xcb-util-wm-devel
|
||||||
$(PREFIX)/bin/bspwm:
|
$(PREFIX)/bin/bspwm:
|
||||||
git clone https://github.com/baskerville/bspwm.git $(PREFIX)/src/bspwm
|
git clone https://github.com/baskerville/bspwm.git "$(PREFIX)"/src/bspwm
|
||||||
$(MAKE) -C $(PREFIX)/src/bspwm install
|
$(MAKE) -C "$(PREFIX)"/src/bspwm install
|
||||||
|
|
||||||
|
# depends on:
|
||||||
|
# apk:git (build)
|
||||||
|
# apk:ncurses-devel (optional if curses.h is present on system)
|
||||||
|
$(PREFIX)/bin/cmatrix:
|
||||||
|
git clone https://github.com/abishekvashok/cmatrix.git $(PREFIX)/src/cmatrix
|
||||||
|
sh -c 'cd "$(PREFIX)"/src/cmatrix; autoreconf -i && ./configure --prefix="$(PREFIX)"'
|
||||||
|
$(MAKE) -C "$(PREFIX)"/src/cmatrix install
|
||||||
|
|
||||||
|
# game.tar should extract to
|
||||||
|
# 'The Coffin of Andy and Leyley'/
|
||||||
|
# Game.exe
|
||||||
|
# [files on which Game.exe depends]
|
||||||
|
# I originally got it as a RAR which I decompressed and packed into a TAR.
|
||||||
|
# _CommonRedist/
|
||||||
|
# dotNetFx40_Full_setup.exe
|
||||||
|
# dxwebsetup.exe
|
||||||
|
# oalinst.exe
|
||||||
|
# vcredist_2015-2019_x64.exe
|
||||||
|
# vcredist_2015-2019_x86.exe
|
||||||
|
# vcredist_x64.exe
|
||||||
|
# vcredist_x86.exe
|
||||||
|
# xnafx40_redist.msi
|
||||||
|
# depends on
|
||||||
|
# apk:curl
|
||||||
|
# apk:git
|
||||||
|
# apk:qemu-system-arm
|
||||||
|
# apk:xz
|
||||||
|
$(PREFIX)/bin/coffin_files/2021-10-30-raspios-bullseye-armhf-full.img:
|
||||||
|
mkdir -p "$(PREFIX)"/bin/coffin_files
|
||||||
|
curl http://downloads.raspberrypi.org/raspios_full_armhf/images/raspios_full_armhf-2021-11-08/2021-10-30-raspios-bullseye-armhf-full.zip -o "$(PREFIX)"/bin/coffin_files/2021-10-30-raspios-bullseye-armhf-full.zip
|
||||||
|
tar -C "$(PREFIX)"/bin/coffin_files xf "$(PREFIX)"/bin/coffin_files/2021-10-30-raspios-bullseye-armhf-full.zip
|
||||||
|
#$(PREFIX)/bin/coffin: $(PREFIX)/bin/coffin_files/game.tar $(PREFIX)/bin/coffin_files/2021-10-30-raspios-bullseye-armhf-full.img $(PREFIX)/src/qemu-rpi-kernel
|
||||||
|
|
||||||
# Installs the Python script without documentation because I'm lazy and don't
|
# Installs the Python script without documentation because I'm lazy and don't
|
||||||
# wanna run the upstream Makefile and then deal with filtering out the Python
|
# wanna run the upstream Makefile and then deal with filtering out the Python
|
||||||
@ -155,6 +196,12 @@ $(PREFIX)/bin/nmap:
|
|||||||
cd /usr/local/src/nmap-7.80; ./configure --prefix=/usr/local
|
cd /usr/local/src/nmap-7.80; ./configure --prefix=/usr/local
|
||||||
$(MAKE) -C /usr/local/src/nmap-7.80
|
$(MAKE) -C /usr/local/src/nmap-7.80
|
||||||
|
|
||||||
|
# depends on
|
||||||
|
# apk:git
|
||||||
|
$(PREFIX)/bin/pandoc: $(PREFIX)/bin/cabal
|
||||||
|
git clone https://github.com/jgm/pandoc.git "$(PREFIX)"/src/pandoc.tmp
|
||||||
|
mv "$(PREFIX)"/pandoc.tmp "$(PREFIX)"/pandoc
|
||||||
|
|
||||||
# depends on
|
# depends on
|
||||||
# apk:bison
|
# apk:bison
|
||||||
# apk:cairo-devel
|
# apk:cairo-devel
|
||||||
@ -179,10 +226,17 @@ $(PREFIX)/bin/rofi:
|
|||||||
# apk:libxcomposite-devel
|
# apk:libxcomposite-devel
|
||||||
# apk:libxfixes-devel
|
# apk:libxfixes-devel
|
||||||
$(PREFIX)/bin/scrot:
|
$(PREFIX)/bin/scrot:
|
||||||
git clone https://github.com/resurrecting-open-source-projects/scrot.git $(PREFIX)/src/scrot
|
git clone https://github.com/resurrecting-open-source-projects/scrot.git "$(PREFIX)"/src/scrot
|
||||||
sh -c 'cd $(PREFIX)/src/scrot && ./autogen.sh && ./configure MAKE=$(MAKE) PREFIX=$(PREFIX)'
|
sh -c 'cd $(PREFIX)/src/scrot && ./autogen.sh && ./configure MAKE=$(MAKE) PREFIX=$(PREFIX)'
|
||||||
$(MAKE) -C $(PREFIX)/src/scrot install
|
$(MAKE) -C $(PREFIX)/src/scrot install
|
||||||
|
|
||||||
|
# depends on
|
||||||
|
# apk:g++
|
||||||
|
$(PREFIX)/bin/unrar:
|
||||||
|
git clone https://github.com/pmachapman/unrar.git "$(PREFIX)"/src/unrar
|
||||||
|
$(MAKE) -C "$(PREFIX)"/src/unrar
|
||||||
|
$(INSTALL) -Dm0755 "$(PREFIX)"/src/unrar/unrar "$(PREFIX)"/bin/unrar
|
||||||
|
|
||||||
# I tried final_official_2.50 but it wouldn't build
|
# I tried final_official_2.50 but it wouldn't build
|
||||||
# (ld: error: duplicate symbol: comDat)
|
# (ld: error: duplicate symbol: comDat)
|
||||||
# depends on
|
# depends on
|
||||||
@ -202,6 +256,35 @@ $(PREFIX)/share/audacious/Skins/Sailor_Moon_Gang.wsz:
|
|||||||
mkdir -p $(PREFIX)/share/audacious/Skins
|
mkdir -p $(PREFIX)/share/audacious/Skins
|
||||||
curl https://archive.org/download/winampskin_Sailor_Moon_Gang/Sailor_Moon_Gang.wsz -o $(PREFIX)/share/audacious/Skins/Sailor_Moon_Gang.wsz
|
curl https://archive.org/download/winampskin_Sailor_Moon_Gang/Sailor_Moon_Gang.wsz -o $(PREFIX)/share/audacious/Skins/Sailor_Moon_Gang.wsz
|
||||||
|
|
||||||
|
# depends on
|
||||||
|
# apk:git
|
||||||
|
$(PREFIX)/src/qemu-rpi-kernel:
|
||||||
|
git clone https://github.com/dhruvvyas90/qemu-rpi-kernel "$(PREFIX)"/src/qemu-rpi-kernel
|
||||||
|
|
||||||
|
# depends on
|
||||||
|
# apk:git
|
||||||
|
$(PREFIX)/src/moreutils:
|
||||||
|
git clone git://git.joeyh.name/moreutils "$(PREFIX)"/src/moreutils.tmp
|
||||||
|
mv "$(PREFIX)"/src/moreutils.tmp "$(PREFIX)"/src/moreutils
|
||||||
|
|
||||||
|
# depends on
|
||||||
|
# apk:git
|
||||||
|
$(PREFIX)/src/syslinux:
|
||||||
|
git clone --recursive https://repo.or.cz/syslinux.git "$(PREFIX)"/src/syslinux
|
||||||
|
|
||||||
|
.PHONY: android-udev-rules
|
||||||
|
android-udev-rules:
|
||||||
|
git clone https://github.com/M0Rf30/android-udev-rules.git "$(PREFIX)"/src/android-udev-rules
|
||||||
|
# rather than requiring user to be in `adbusers`, just use group wheel
|
||||||
|
sed -i .orig -e s/adbusers/wheel/g "$(PREFIX)"/src/android-udev-rules/51-android.rules
|
||||||
|
mkdir -p /etc/udev/rules.d
|
||||||
|
cp "$(PREFIX)"/src/android-udev-rules/51-android.rules /etc/udev/rules.d/51-android.rules
|
||||||
|
chmod a+r /etc/udev/rules.d/51-android.rules
|
||||||
|
udevadm control --reload-rules
|
||||||
|
# assumes dinit
|
||||||
|
dinitctl restart udevd
|
||||||
|
|
||||||
|
|
||||||
.PHONY: unscii-pkgsrc
|
.PHONY: unscii-pkgsrc
|
||||||
unscii-pkgsrc:
|
unscii-pkgsrc:
|
||||||
$(MAKE) -C /usr/pkgsrc/fonts/unscii install clean clean-depends
|
$(MAKE) -C /usr/pkgsrc/fonts/unscii install clean clean-depends
|
||||||
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 318 B |
1
homepage/.gitignore
vendored
1
homepage/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
test
|
|
@ -1,26 +0,0 @@
|
|||||||
.POSIX:
|
|
||||||
|
|
||||||
FILES = CNAME css homepage img Makefile README
|
|
||||||
RM = rm -f
|
|
||||||
|
|
||||||
test:
|
|
||||||
mkdir test
|
|
||||||
cp -R $(FILES) test/
|
|
||||||
make -C test generate
|
|
||||||
|
|
||||||
clean_test:
|
|
||||||
rm -r test
|
|
||||||
|
|
||||||
retest:
|
|
||||||
make clean_test
|
|
||||||
make test
|
|
||||||
|
|
||||||
generate: clean.sh
|
|
||||||
|
|
||||||
clean.sh:
|
|
||||||
sh homepage
|
|
||||||
|
|
||||||
clean: clean.sh
|
|
||||||
sh clean.sh
|
|
||||||
|
|
||||||
.PHONY: generate clean test clean_test retest
|
|
Loading…
Reference in New Issue
Block a user