27 lines
589 B
Bash
27 lines
589 B
Bash
# Template file for 'servy'
|
|
pkgname=servy
|
|
version=0.3.0
|
|
revision=1
|
|
hostmakedepends="cargo rust 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"
|
|
checksum=f75a829a7ff73beb99fc734d41a1bdbd23c29c7e1794e59be699db474b8b5a89
|
|
nocross=yes
|
|
|
|
do_build() {
|
|
cargo build --release
|
|
}
|
|
|
|
do_check() {
|
|
cargo test --release
|
|
}
|
|
|
|
do_install() {
|
|
vbin target/release/"${pkgname}"
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
}
|