servy: use cargo buildstyle
This commit is contained in:
parent
4ae2170e77
commit
f845e26b48
|
@ -1,25 +1,16 @@
|
|||
# Template file for 'servy'
|
||||
pkgname=servy
|
||||
version=1.0.0
|
||||
revision=1
|
||||
hostmakedepends="cargo rust pkg-config"
|
||||
revision=2
|
||||
build_style=cargo
|
||||
hostmakedepends="pkg-config"
|
||||
short_desc="A tiny little web server"
|
||||
maintainer="zethra <jediben97@gmail.com>"
|
||||
license="Apache-2.0, MIT"
|
||||
homepage="https://github.com/zethra/servy"
|
||||
distfiles="https://github.com/zethra/servy/archive/v${version}.tar.gz"
|
||||
distfiles="https://github.com/zethra/servy/archive/${version}.tar.gz"
|
||||
checksum=6da77ef18dd04c3840a5d3bebbf1552623d2357533405c32dfdb2853b8299c44
|
||||
nocross=yes
|
||||
|
||||
do_build() {
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
do_check() {
|
||||
cargo test --release
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin target/release/servy
|
||||
post_install() {
|
||||
vlicense LICENSE-MIT
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue