commit 532c0f6903201c26f303c618d89644b086b2d71d
Author: askiiart <dev@askiiart.net>
Date:   Tue Apr 15 00:12:04 2025 -0500

    initial commit

diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..8ce6da2
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,17 @@
+kind: pipeline
+type: docker
+name: default
+
+steps:
+  - name: Build <PLACEHOLDER>
+    image: debian
+    commands:
+      - '/drone/src/compilation.sh'
+    volumes:
+      - name: program-archives
+        path: /compiled
+
+volumes:
+  - name: program-archives
+    host:
+      path: /mnt/user/files/repos/archives
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..7640f54
--- /dev/null
+++ b/README.md
@@ -0,0 +1,17 @@
+# [Placeholder](https://github.com/PLACEHOLDER_AUTHOR/PLACEHOLDER_REPO) (build)
+
+```
+.
+├── 99-filename (/etc/udev/rules.d/)
+└── filename.service (/usr/lib/systemd/user/)
+```
+
+---
+
+Install deps:
+
+- libc
+
+Build deps:
+
+- gcc
diff --git a/compilation.sh b/compilation.sh
new file mode 100755
index 0000000..0aa6463
--- /dev/null
+++ b/compilation.sh
@@ -0,0 +1,45 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+program_name="<PLACEHOLDER>"
+SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
+
+### prep
+workdir=$(mktemp -d)
+built_dir=${COMPILED_DIR:-/compiled}/$program_name
+mkdir -p $built_dir
+apt update && apt install curl jq -y
+
+### check whether it's up-to-date
+version_file=$built_dir/version
+touch $version_file
+version=$(curl 'https://api.github.com/repos/<PLACEHOLDER_AUTHOR>/<PLACEHOLDER_REPO>/releases/latest' | jq '.tag_name' -r)
+if grep -q $version $version_file; then
+    echo "already up to date, exiting"
+    exit
+fi
+
+### get source and build
+# get build deps
+apt install <PLACEHOLDER >-y # zstd is for archive creation
+
+cd $workdir
+curl -L $(curl 'https://api.github.com/repos/<PLACEHOLDER_AUTHOR>/<PLACEHOLDER_REPO>/releases/latest' | jq '.tarball_url' -r) -o $program_name-$version.tar.gz
+tar -xzf $program_name-$version.tar.gz
+src_dir=$(find $(pwd) -name "maximbaz-wluma*")
+cd $src_dir
+cargo install --path .
+
+### create .tar.zst archive
+# prep
+cd $src_dir
+$archive_dir=$(mktemp -d)
+cp $(which wluma) $archive_dir
+cp <PLACEHOLDER >$archive_dir
+
+# actually create it and finish up
+cd $archive_dir
+tar --zstd -cf $built_dir/$program_name.tar.zst .
+echo $version >$version_file
+
+echo "$program_name updated to $version"