pufferpanel-bin/PKGBUILD
2021-09-01 03:41:09 +00:00

36 lines
1.3 KiB
Bash

# Maintainer: S. Wiegand <flummi[at]srv[dot]fail>
pkgname=pufferpanel-bin
pkgver=2.3.1
pkgrel=3
pkgdesc="PufferPanel: A web-base game management system (binary version)."
arch=('x86_64')
url="https://github.com/PufferPanel/PufferPanel"
license=('Apache')
provides=('pufferpanel')
conflicts=('pufferpanel')
optdepends=('nginx: TLS support'
'postgresql: Dedicated database'
'docker: Container support'
'sqlite: Database support')
depends=()
source=(https://github.com/PufferPanel/PufferPanel/releases/download/v${pkgver//_/-}/pufferpanel_${pkgver//_/-}_amd64.deb)
b2sums=('1e899a2a803dfe9a4d54748f222dac1c66ebf9463d873081850578f682bf7b31ad1284b4793288c1117d65253d5b5c543a593f96b16165a80f5dcc6e2ecbd75a')
package() {
tar xJf $srcdir/data.tar.xz
install -Dm644 $srcdir/../pufferpanel.sysusers $pkgdir/usr/lib/sysusers.d/pufferpanel.conf
install -Dm644 $srcdir/../pufferpanel.tmpfiles $pkgdir/usr/lib/tmpfiles.d/pufferpanel.conf
install -D $srcdir/usr/sbin/pufferpanel $pkgdir/usr/bin/pufferpanel
mkdir -p $pkgdir/etc/pufferpanel
cp -R $srcdir/etc/pufferpanel/* $pkgdir/etc/pufferpanel
mkdir -p $pkgdir/var/www/pufferpanel/
cp -R $srcdir/var/www/* $pkgdir/var/www/pufferpanel
install -D $srcdir/lib/systemd/system/pufferpanel.service $pkgdir/usr/lib/systemd/system/pufferpanel.service
}