This commit is contained in:
Matthieu Jolimaitre 2025-07-23 11:35:51 +02:00
commit aa8e3ef7d6
12 changed files with 479 additions and 0 deletions

1
package/pacman/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/tmp

12
package/pacman/package Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/bash
set -e
cd "$(dirname "$(realpath "$0")")"
rm -vfr tmp
mkdir tmp
cd tmp
ln -s ../src/* ./
makepkg -sf

View file

@ -0,0 +1,19 @@
# Maintainer: JOLIMAITRE Matthieu <matthieu@imagevo.fr>
pkgname="dated-bin"
pkgver=0.1.0
pkgrel=1
pkgdesc="Minimal CLI for prefixing dates to log lines."
url="https://git.barnulf.net/mb/dated"
arch=("x86_64")
license=('MIT')
source=("https://git.barnulf.net/api/packages/mb/generic/dated/latest/dated-x86_64-unknown-linux-musl.zip")
sha256sums=("SKIP")
provides=("dated")
package() {
install -Dm755 dated "$pkgdir/usr/bin/dated"
}
pkgver() {
./dated --version | head -n 1 | cut -d ' ' -f 2
}

1
package/release/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/tmp

23
package/release/package Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/bash
set -e
cd "$(dirname "$(realpath "$0")")"
version="$(cargo run --quiet -- --version | cut -d ' ' -f 2)"
auth="$(cat ~/.secrets/git_barnulf_net.txt)"
artefact="dated-x86_64-unknown-linux-musl.zip"
cargo build --release
mkdir -p tmp
cp ../../target/x86_64-unknown-linux-musl/release/dated tmp/dated
cd tmp
zip "$artefact" dated
curl --user "$auth" \
--upload-file "tmp/$artefact" \
"https://git.barnulf.net/api/packages/mb/generic/dated/$version/$artefact"
curl --user "$auth" \
--upload-file "tmp/$artefact" \
"https://git.barnulf.net/api/packages/mb/generic/dated/latest/$artefact"