blob: e37fb9936c5be82570cdef85614ce90b4d4f8019 (
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
|
# Maintainer: Glucy2 <glucy-2@outlook.com>
# Contributor: fantasyzhjk <fantasyzhjk@outlook.com>
pkgname=mcping-git
pkgver=20240908
pkgrel=1
pkgdesc="Ping any Minecraft server."
arch=('any')
license=('MIT')
url='https://github.com/Tnze/go-mc/tree/master/examples/mcping'
makedepends=('go' 'git')
source=(
"git+https://github.com/Tnze/go-mc.git"
)
sha256sums=(
'SKIP'
)
pkgver() {
cd "$srcdir/go-mc/examples/mcping"
git log -1 --format="%cd" --date=short | sed s/-//g
}
build() {
cd "$srcdir/go-mc/examples/mcping"
go build
}
package() {
install -Dm755 "$srcdir/go-mc/examples/mcping/mcping" "$pkgdir/usr/bin/mcping"
}
|