master
LordMZTE 9 months ago
commit 6c15951587

4
.gitignore vendored

@ -0,0 +1,4 @@
mcstat/
src/
pkg/
*.zst

@ -0,0 +1,49 @@
# Maintainer: LordMZTE <lord at mzte dot de>
_pkgname="mcstat"
pkgname="${_pkgname}-git"
pkgver=r59.656984a
pkgrel=1
pkgdesc="Minecraft server pinging tool"
arch=('x86_64')
url="https://github.com/hrkfdn/ncspot"
license=('GPL-3')
depends=(
'openssl'
)
makedepends=(
'rust'
'cargo'
'git'
)
provides=("mcstat")
conflicts=("mcstat")
source=("git+https://mzte.de/git/LordMZTE/mcstat.git")
sha512sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_pkgname}"
cargo fetch
}
build() {
cd "${srcdir}/${_pkgname}"
cargo build --release
}
check() {
cd "${srcdir}/${_pkgname}"
cargo test --release
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm 755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm 755 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
Loading…
Cancel
Save