summaryrefslogtreecommitdiff
path: root/metamuffin-website-git
diff options
context:
space:
mode:
Diffstat (limited to 'metamuffin-website-git')
-rw-r--r--metamuffin-website-git/PKGBUILD30
-rw-r--r--metamuffin-website-git/metamuffin-website.service33
-rw-r--r--metamuffin-website-git/sysusers.conf1
3 files changed, 9 insertions, 55 deletions
diff --git a/metamuffin-website-git/PKGBUILD b/metamuffin-website-git/PKGBUILD
index 19aefeb..fc84eda 100644
--- a/metamuffin-website-git/PKGBUILD
+++ b/metamuffin-website-git/PKGBUILD
@@ -1,23 +1,15 @@
# Maintainer: metamuffin <metamuffin@disroot.org>
pkgname=metamuffin-website-git
-pkgver=r76.fbc308f
+pkgver=r88.4456239
pkgrel=1
-pkgdesc="metamuffins personal webpage"
-arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
+pkgdesc="metamuffin's personal webpage"
+arch=('any')
url="https://codeberg.org/metamuffin/metamuffin-website"
license=('AGPL3')
makedepends=('rustup')
-source=("git+https://codeberg.org/metamuffin/metamuffin-website.git"
- "metamuffin-website.service"
- "sysusers.conf")
-sha256sums=("SKIP"
- "SKIP"
- "SKIP")
-
-rust_chost() {
- sed -e "s/-pc-linux/-unknown-linux/" -e "s/armv7l-/armv7-/" <<< "$CHOST"
-}
+source=("git+https://codeberg.org/metamuffin/metamuffin-website.git")
+sha256sums=("SKIP")
pkgver() {
cd "metamuffin-website"
@@ -25,17 +17,13 @@ pkgver() {
}
prepare() {
cd "metamuffin-website"
- rustup default nightly
- cargo +nightly fetch --locked --target "$(rust_chost)"
+ make clean
}
build() {
cd "metamuffin-website"
- cargo +nightly build --frozen --release --target "$(rust_chost)"
+ make all
}
package() {
- mkdir -p "$pkgdir/usr/share/metamuffin-website"
- install -Dm755 metamuffin-website/target/$(rust_chost)/release/metamuffin-website "$pkgdir/usr/bin/metamuffin-website"
- install -Dm644 metamuffin-website.service "$pkgdir/usr/lib/systemd/system/metamuffin-website.service"
- install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/metamuffin-website.conf"
- install -Dm644 metamuffin-website/COPYING "$pkgdir/usr/share/licenses/metamuffin-website/COPYING"
+ cd "metamuffin-website"
+ make install PREFIX="$pkgdir/usr/share/webapps/metamuffin-website"
}
diff --git a/metamuffin-website-git/metamuffin-website.service b/metamuffin-website-git/metamuffin-website.service
deleted file mode 100644
index 4195d98..0000000
--- a/metamuffin-website-git/metamuffin-website.service
+++ /dev/null
@@ -1,33 +0,0 @@
-[Unit]
-Description=metamuffin personal website
-After=network.target
-Wants=network-online.target
-
-[Service]
-WorkingDirectory=/usr/share/metamuffin-website
-ExecStart=/usr/bin/metamuffin-website
-User=metamuffin_website
-LockPersonality=yes
-MemoryDenyWriteExecute=yes
-NoNewPrivileges=yes
-PrivateDevices=true
-PrivateTmp=true
-ProtectClock=yes
-ProtectControlGroups=yes
-ProtectHome=true
-ProtectHostname=yes
-ProtectKernelLogs=yes
-ProtectKernelModules=yes
-ProtectKernelTunables=yes
-ProtectSystem=full
-RestrictAddressFamilies=~AF_PACKET AF_NETLINK
-RestrictNamespaces=yes
-RestrictSUIDSGID=yes
-RestrictRealtime=yes
-Restart=always
-SystemCallArchitectures=native
-SystemCallFilter=@system-service
-Type=simple
-
-[Install]
-WantedBy=multi-user.target
diff --git a/metamuffin-website-git/sysusers.conf b/metamuffin-website-git/sysusers.conf
deleted file mode 100644
index 8c70085..0000000
--- a/metamuffin-website-git/sysusers.conf
+++ /dev/null
@@ -1 +0,0 @@
-u metamuffin_website - "metamuffins personal website" - -