26 lines
978 B
Bash
26 lines
978 B
Bash
# 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"
|
|
} |