blob: 543af53d4d67116b7d646a108df2b77114511f1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Thomas Schneider <thomas.aur@brainfuck.space>
pkgname=opengist-bin
_pkgname=opengist
pkgver=1.7.2
pkgrel=2
pkgdesc="Opengist Server"
arch=('x86_64')
url="https://github.com/thomiceli/opengist"
license=('MIT')
optdepends=('nginx')
backup=("etc/$_pkgname/config.yml")
if [ "$CARCH" == 'x86_64' ]; then
_arch='amd64'
else
_arch="$CARCH"
fi
source=(
"https://github.com/thomiceli/opengist/releases/download/v$pkgver/opengist$pkgver-linux-${_arch}.tar.gz"
"opengist.service"
"sysusers.conf"
"tmpfiles.conf"
)
package() {
cd "$srcdir"
tar xzvf opengist$pkgver-linux-$_arch.tar.gz
install -Dm755 opengist/opengist "$pkgdir/usr/bin/opengist"
# Create directories and config file
install -d -m755 "$pkgdir/etc/$_pkgname"
install -m644 ${srcdir}/opengist/config.yml "$pkgdir/etc/$_pkgname/config.yml"
# Install service file
install -Dm644 opengist.service "$pkgdir/usr/lib/systemd/system/opengist.service"
# Install sysusers.conf and tmpfiles.conf
install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$_pkgname.conf"
install -Dm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf"
}
sha256sums=('3c581df49019b54f616e7132996a950a8c27b2d0b9504322d411a56b8003c25f'
'9e1e296ae4106c6b1f4d91a7c570d540624791c5666d42e4dfe83ccb6f5784dc'
'05493c53b97bfa288d37018004009b9567a1b0253e3f1bab0a0390eee1028a98'
'18db5c2f8db7e2e4961a97527431eaaabfffda4e2a3364a13dd6f1ddcf4091c1')
|