summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorquininer2019-11-01 00:59:43 +0800
committerquininer2019-11-01 00:59:43 +0800
commit0f3418878ef27439edd0a16a2a0cc7c5ce5e1416 (patch)
tree7196f45a8619f7f38d46e6b3c406514412a24461 /PKGBUILD
downloadaur-0f3418878ef27439edd0a16a2a0cc7c5ce5e1416.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5a8add598bd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+pkgname=cargo-kcov-git
+_pkgname=cargo-kcov
+pkgdesc="Cargo subcommand to run kcov to get coverage report on Linux"
+pkgrel=1
+pkgver=0.5.3.70
+arch=('i686' 'x86_64')
+conflicts=("cargo-kcov")
+provides=("cargo-kcov")
+url="https://github.com/kennytm/cargo-kcov"
+license=('Apache' 'MIT')
+depends=('rust' 'cargo' 'kcov')
+makedepends=('rust' 'cargo')
+optdepends=()
+source=("$_pkgname::git+https://github.com/kennytm/cargo-kcov")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ cargo build --release
+}
+
+package() {
+ cd $_pkgname
+ install -D -m755 "$srcdir/$_pkgname/target/release/cargo-kcov" "$pkgdir/usr/bin/cargo-kcov"
+}