1
0

flatten homepage heirarchy

This commit is contained in:
dtb 2023-11-24 07:53:39 -07:00
parent c402360844
commit 1b386eeffc
10 changed files with 91 additions and 36 deletions

View File

@ -5,8 +5,7 @@ packages:
- python3
tasks:
- package: |
make -C src/homepage generate
tar cvz --exclude .git -C src/homepage . >site.tar.gz
make -C src dist/homepage.tar.gz
ls -l site.tar.gz
- upload: |
hut pages publish -d trinity.moe site.tar.gz
hut pages publish -d trinity.moe homepage.tar.gz

View File

@ -2,10 +2,18 @@
CC = cc
CFLAGS = -Iinclude/ -Ilib/ -g -Wall -Wextra -Wpedantic
HOME = /home/trinity
MAKE = gmake
PREFIX = /usr/local
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/
# so i wouldn't have to fetch the icons for her desktop when i made her a new
# system.
@ -110,8 +118,8 @@ $(PREFIX)/src/arduino18:
mv "$(PREFIX)"/arduino-1.8.19 "$(PREFIX)"/arduino18
$(PREFIX)/bin/bar:
git clone https://github.com/LemonBoy/bar.git $(PREFIX)/src/bar
$(MAKE) -C $(PREFIX)/src/bar PREFIX=$(PREFIX) install
git clone https://github.com/LemonBoy/bar.git "$(PREFIX)"/src/bar
$(MAKE) -C "$(PREFIX)"/src/bar PREFIX="$(PREFIX)" install
# depends on
# apk:clang
@ -125,8 +133,41 @@ $(PREFIX)/bin/bar:
# apk:xcb-util-keysyms-devel
# apk:xcb-util-wm-devel
$(PREFIX)/bin/bspwm:
git clone https://github.com/baskerville/bspwm.git $(PREFIX)/src/bspwm
$(MAKE) -C $(PREFIX)/src/bspwm install
git clone https://github.com/baskerville/bspwm.git "$(PREFIX)"/src/bspwm
$(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
# 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
$(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
# apk:bison
# apk:cairo-devel
@ -179,10 +226,17 @@ $(PREFIX)/bin/rofi:
# apk:libxcomposite-devel
# apk:libxfixes-devel
$(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)'
$(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
# (ld: error: duplicate symbol: comDat)
# depends on
@ -202,6 +256,35 @@ $(PREFIX)/share/audacious/Skins/Sailor_Moon_Gang.wsz:
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
# 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
unscii-pkgsrc:
$(MAKE) -C /usr/pkgsrc/fonts/unscii install clean clean-depends

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 318 B

After

Width:  |  Height:  |  Size: 318 B

1
homepage/.gitignore vendored
View File

@ -1 +0,0 @@
test

View File

@ -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