added PKBUILD

This commit is contained in:
2026-02-14 22:51:38 +01:00
parent 323d577854
commit ead0a88c11

26
PKGBUILD Normal file
View File

@@ -0,0 +1,26 @@
# Maintainer: Lukas Forsberg lukas96.forsberg@gmail.com
pkgname=shadowrun-server
pkgver=0.1.1
pkgrel=1
arch=('x86_64')
depends=()
pkgdesc="A Linux C++ Crow + Svelte web service to create shadorun characters"
license=('MIT')
makedepends=('cmake' 'gcc')
source=(
${pkgname}-${pkgver}.tar.gz
)
md5sums=('SKIP') # SKIP if local files
build() {
cd "$srcdir"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
install -Dm755 "$srcdir/${pkgname}" "$pkgdir/usr/bin/${pkgname}"
install -Dm644 "$srcdir/templates/index.html" "$pkgdir/usr/share/${pkgname}/templates/index.html"
install -Dm644 "$srcdir/static/htmx.min.js" "$pkgdir/usr/share/${pkgname}/static/htmx.min.js"
install -Dm644 "$srcdir/static/settings.json" "$pkgdir/usr/share/${pkgname}/static/settings.json"
install -Dm644 "$srcdir/lf-server-admin-panel.service" "$pkgdir/usr/lib/systemd/system/lf-server-admin-panel.service"
}