added pkg build for project

This commit is contained in:
2025-05-30 12:28:38 +02:00
parent 1e9a377c2a
commit 3d3264d8d6
8 changed files with 59 additions and 24 deletions

26
PKGBUILD Normal file
View File

@@ -0,0 +1,26 @@
# Maintainer: Lukas Forsberg lukas96.forsberg@gmail.com
pkgname=lf-server-admin-panel
pkgver=0.1.0
pkgrel=1
arch=('x86_64')
depends=('crow' 'asio')
pkgdesc="A Linux C++ Crow/HTMX web service to list the status of user specified systemd services"
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"
}