Add service and packaging.

This commit is contained in:
JOLIMAITRE Matthieu 2025-05-26 23:27:57 +02:00
parent b0c07ef3a3
commit e18e84e573
5 changed files with 33 additions and 2 deletions

View file

@ -5,5 +5,5 @@ cd "$(dirname "$(realpath "$0")")"
./src/gen.ts
mkdir -p target
deno compile --allow-env --allow-read --output=target/todo src/todo.ts
deno compile --allow-all --output=target/service src/service.ts
deno compile --allow-env --allow-read --output=target/todo src/todo.ts
deno compile --allow-all --output=target/feseur-service src/feseur-service.ts

9
feseur.service Normal file
View file

@ -0,0 +1,9 @@
[Unit]
Description=Feseur refreshing service.
[Service]
Type=forking
ExecStart=feseur-service
[Install]
WantedBy=multi-user.target

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

@ -0,0 +1 @@
*

21
package/aur/PKGBUILD Normal file
View file

@ -0,0 +1,21 @@
# Maintainer: JOLIMAITRE Matthieu <matthieu@imagevo.fr>
pkgname=feseur
pkgver=1.0.0
pkgrel=1
pkgdesc="TODO list management service."
url="https://git.barnulf.net/mb/feseur"
license=("GPL-3.0+")
arch=("x86_64")
makedepends=("deno")
provides=("feseur-service" "todo")
conflicts=("feseur-service" "todo")
source=("git+https://git.barnulf.net/mb/feseur.git#branch=master")
sha256sums=("SKIP")
package() {
pwd
feseur/build.sh
install -Dm755 feseur/target/todo -t "$pkgdir/usr/bin/todo"
install -Dm644 feseur/target/feseur-service "$pkgdir/usr/bin/todo/feseur-service"
}