summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57189f9a01a20950bfd54e7620412af9a13a1192 (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
# Maintainer: Noah Jelen <noahtjelen@gmail.com>
# Generated by cargo on January 15, 2022 at 02:35:21
pkgname=serverman-preview-git
pkgver=e90972095919d452ebe6004f7dbfffc509abc906
pkgrel=1
pkgdesc="Minecraft Server Management program"
arch=('i686' 'x86_64')
url="https://gitlab.com/NoahJelen/serverman"
license=('GPL')
depends=('ncurses' 'gcc-libs' 'glibc')
makedepends=('cargo' 'gzip')
source=("git+https://gitlab.com/NoahJelen/serverman")
md5sums=('SKIP')

build() {
    cd serverman
    cargo build --release
    cd target/release
    ln -sf serverman servermancli
    ln -sf serverman servermand
}

package() {
    cd serverman
    mkdir -p "$pkgdir/usr/share/man/man1/"
    mkdir -p "$pkgdir/usr/lib/systemd/user"
    install -Dt "$pkgdir/usr/bin" -m755 target/release/serverman
    install -Dt "$pkgdir/usr/bin" -m755 target/release/servermancli
    install -Dt "$pkgdir/usr/bin" -m755 target/release/servermand
    install -Dt "$pkgdir/usr/share/man/man1" man/servermancli.1
    install -Dt "$pkgdir/usr/share/man/man1" man/servermand.1
    install -Dt "$pkgdir/usr/lib/systemd/user" servermand.service
    gzip "$pkgdir/usr/share/man/man1/servermand.1"
    gzip "$pkgdir/usr/share/man/man1/servermancli.1"
}