diff --git a/srcpkgs/servy/template b/srcpkgs/servy/template new file mode 100644 index 00000000000..c23ed386151 --- /dev/null +++ b/srcpkgs/servy/template @@ -0,0 +1,26 @@ +# 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 " +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 +}