You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
919 B

# 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://mzte.de/git/LordMZTE/mcstat.git"
license=('GPL-3')
depends=(
'openssl'
)
makedepends=(
'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"
}