init
This commit is contained in:
commit
6c15951587
2 changed files with 53 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
mcstat/
|
||||
src/
|
||||
pkg/
|
||||
*.zst
|
49
PKGBUILD
Normal file
49
PKGBUILD
Normal file
|
@ -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…
Reference in a new issue