blob: 059eecaccea790efb5bbe90e3086889209d5d28a (
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
|
# Maintainer: Noah Jelen <noahtjelen@gmail.com>
# Generated by cargo on August 31, 2023 at 16:34:28
pkgname=serverman
pkgver=0.4.0
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=("https://gitlab.com/NoahJelen/serverman/-/archive/$pkgver/serverman-$pkgver.zip")
md5sums=('SKIP')
build() {
cd "serverman-$pkgver"
cargo build --release
cd target/release
ln -sf servermand serverman
ln -sf servermand servermancli
}
package() {
cd "serverman-$pkgver"
mkdir -p "$pkgdir/usr/share/man/man1/"
mkdir -p "$pkgdir/usr/lib/systemd/user"
mkdir -p "$pkgdir/usr/share/serverman/"
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/share/man/man1" man/serverman.1
install -Dt "$pkgdir/usr/lib/systemd/user" servermand.service
install -Dt "$pkgdir/usr/share/serverman" icon.png
}
|