summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD30
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..91b7ea3ea8a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = cargo-kcov-git
+ pkgdesc = Cargo subcommand to run kcov to get coverage report on Linux
+ pkgver = 0.5.3.70
+ pkgrel = 1
+ url = https://github.com/kennytm/cargo-kcov
+ arch = i686
+ arch = x86_64
+ license = Apache
+ license = MIT
+ makedepends = rust
+ makedepends = cargo
+ depends = rust
+ depends = cargo
+ depends = kcov
+ provides = cargo-kcov
+ conflicts = cargo-kcov
+ source = cargo-kcov::git+https://github.com/kennytm/cargo-kcov
+ sha256sums = SKIP
+
+pkgname = cargo-kcov-git
+
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"
+}