servy: use cargo buildstyle

This commit is contained in:
Rasmus Thomsen 2018-10-02 01:14:12 +02:00 committed by Enno Boland
parent 4ae2170e77
commit f845e26b48

View file

@ -1,25 +1,16 @@
# Template file for 'servy' # Template file for 'servy'
pkgname=servy pkgname=servy
version=1.0.0 version=1.0.0
revision=1 revision=2
hostmakedepends="cargo rust pkg-config" build_style=cargo
hostmakedepends="pkg-config"
short_desc="A tiny little web server" short_desc="A tiny little web server"
maintainer="zethra <jediben97@gmail.com>" maintainer="zethra <jediben97@gmail.com>"
license="Apache-2.0, MIT" license="Apache-2.0, MIT"
homepage="https://github.com/zethra/servy" 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 checksum=6da77ef18dd04c3840a5d3bebbf1552623d2357533405c32dfdb2853b8299c44
nocross=yes
do_build() { post_install() {
cargo build --release
}
do_check() {
cargo test --release
}
do_install() {
vbin target/release/servy
vlicense LICENSE-MIT vlicense LICENSE-MIT
} }