loc: use cargo buildstyle

This commit is contained in:
Rasmus Thomsen 2018-10-02 01:12:55 +02:00 committed by Enno Boland
parent 90b8295a04
commit 1735f0b104
1 changed files with 3 additions and 9 deletions

View File

@ -1,21 +1,15 @@
# Template file for 'loc' # Template file for 'loc'
pkgname=loc pkgname=loc
version=0.4.1 version=0.4.1
revision=1 revision=2
hostmakedepends="cargo" build_style=cargo
short_desc="Count lines of code quickly" short_desc="Count lines of code quickly"
maintainer="SolitudeSF <solitudesf@protonmail.com>" maintainer="SolitudeSF <solitudesf@protonmail.com>"
license="MIT" license="MIT"
homepage="https://github.com/cgag/loc" homepage="https://github.com/cgag/loc"
distfiles="${homepage}/archive/v${version}.tar.gz" distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=1e8403fd9a3832007f28fb389593cd6a572f719cd95d85619e7bbcf3dbea18e5 checksum=1e8403fd9a3832007f28fb389593cd6a572f719cd95d85619e7bbcf3dbea18e5
nocross=yes
do_build() { post_install() {
cargo build --release
}
do_install() {
vbin target/release/loc
vlicense LICENSE vlicense LICENSE
} }