diff options
Diffstat (limited to 'ceres')
-rw-r--r-- | ceres/0001-Fix-style.css-symlink-for-Arch-Linux-build.patch | 21 | ||||
-rw-r--r-- | ceres/PKGBUILD | 41 | ||||
-rw-r--r-- | ceres/ceres.service | 11 | ||||
-rw-r--r-- | ceres/ceres.tmpfile.d | 1 | ||||
-rw-r--r-- | ceres/sysuser.conf | 1 |
5 files changed, 75 insertions, 0 deletions
diff --git a/ceres/0001-Fix-style.css-symlink-for-Arch-Linux-build.patch b/ceres/0001-Fix-style.css-symlink-for-Arch-Linux-build.patch new file mode 100644 index 0000000..dd9f095 --- /dev/null +++ b/ceres/0001-Fix-style.css-symlink-for-Arch-Linux-build.patch @@ -0,0 +1,21 @@ +From 3044c28ec034406e3d8ab82a8551ada1a0b52470 Mon Sep 17 00:00:00 2001 +From: xengineering <me@xengineering.eu> +Date: Thu, 13 Apr 2023 21:10:11 +0200 +Subject: [PATCH] Fix style.css symlink for Arch Linux build + +--- + data/static/style.css | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/data/static/style.css b/data/static/style.css +index c954338..f49e7f6 120000 +--- a/data/static/style.css ++++ b/data/static/style.css +@@ -1 +1 @@ +-../../simple.css/simple.min.css +\ No newline at end of file ++../../../simple.css-2.1.1/simple.min.css +\ No newline at end of file +-- +2.40.0 + diff --git a/ceres/PKGBUILD b/ceres/PKGBUILD new file mode 100644 index 0000000..32612b6 --- /dev/null +++ b/ceres/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: xengineering <me@xengineering.eu> +pkgname=ceres +pkgver=0.2.0 +pkgrel=1 +pkgdesc="Recipe server for your favorite dishes" +arch=('x86_64' 'aarch64') +url="https://xengineering.eu/git/ceres" +license=('AGPL') +makedepends=('coreutils' 'git' 'make' 'go') +backup=('etc/ceres/config.json') +source=('https://cgit.xengineering.eu/ceres/snapshot/ceres-0.2.0.tar.zst' + 'https://github.com/kevquirk/simple.css/archive/refs/tags/v2.1.1.tar.gz' + '0001-Fix-style.css-symlink-for-Arch-Linux-build.patch' + 'ceres.service' + 'sysuser.conf' + 'ceres.tmpfile.d') +sha256sums=('e3dc85ecc7f8c0d6be6c740f29ae56394cfaa8c883c6f583110b0b790a53e01d' + '0759002f5905a3955fbec40fb71e04ca45e015791e3f7b5cd1ad4771c4c4fb22' + '2e2441bbc13bace5c5cc9be8efbdab98e3db13c831967ed2676aff56beca46ea' + 'da4b6201e9bcf2cc3ae94b274338b58abc5368d77e0df1ece578644a415d8ace' + 'a8c7c3d6af65bd7255b0f693430c6ba53d646123feebec9a1e37f8723c21942b' + 'f2cc4598aebbb96b7d190b3d69fca94b09d1ebc5f0d858fb01ab69d0ea6b071e') + +prepare() { + cd $pkgbase-$pkgver/ + patch -Np1 < ../0001-Fix-style.css-symlink-for-Arch-Linux-build.patch +} + +build() { + cd "$pkgname-$pkgver" + make +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + rm -rf "${pkgdir}/var" + install -Dm644 "${srcdir}"/ceres.service "${pkgdir}"/usr/lib/systemd/system/ceres.service + install -Dm644 "${srcdir}"/sysuser.conf "${pkgdir}"/usr/lib/sysusers.d/ceres.conf + install -Dm644 "${srcdir}"/ceres.tmpfile.d "${pkgdir}"/usr/lib/tmpfiles.d/ceres.conf +} diff --git a/ceres/ceres.service b/ceres/ceres.service new file mode 100644 index 0000000..49fbe8b --- /dev/null +++ b/ceres/ceres.service @@ -0,0 +1,11 @@ +[Unit] +Description=A recipe server for your favorite dishes +After=network.target + +[Service] +User=ceres +Group=ceres +ExecStart=/usr/bin/ceres + +[Install] +WantedBy=multi-user.target diff --git a/ceres/ceres.tmpfile.d b/ceres/ceres.tmpfile.d new file mode 100644 index 0000000..7eb5157 --- /dev/null +++ b/ceres/ceres.tmpfile.d @@ -0,0 +1 @@ +d /var/lib/ceres 0700 ceres ceres - diff --git a/ceres/sysuser.conf b/ceres/sysuser.conf new file mode 100644 index 0000000..2c4905b --- /dev/null +++ b/ceres/sysuser.conf @@ -0,0 +1 @@ +u ceres - "Ceres system user" /var/lib/ceres |