[arch-commits] Commit in cargo-tarpaulin/repos (2 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Wed Aug 24 08:03:47 UTC 2022
Date: Wednesday, August 24, 2022 @ 08:03:46
Author: alerque
Revision: 1276092
archrelease: copy trunk to community-staging-x86_64
Added:
cargo-tarpaulin/repos/community-staging-x86_64/
cargo-tarpaulin/repos/community-staging-x86_64/PKGBUILD
(from rev 1276091, cargo-tarpaulin/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: cargo-tarpaulin/repos/community-staging-x86_64/PKGBUILD (from rev 1276091, cargo-tarpaulin/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-08-24 08:03:46 UTC (rev 1276092)
@@ -0,0 +1,58 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+
+pkgname=cargo-tarpaulin
+pkgver=0.20.1
+pkgrel=2
+pkgdesc='Tool to analyse test coverage of cargo projects'
+arch=(x86_64)
+url=https://github.com/xd009642/tarpaulin
+license=(Apache MIT)
+depends=(
+ gcc-libs
+ glibc
+ libcurl.so
+ openssl
+ libssh2
+ libgit2
+ zlib
+)
+makedepends=(
+ git
+ rust
+)
+_tag=e58d865837ebccea3de6675f9dacedfb373df103
+source=(git+https://github.com/xd009642/tarpaulin.git#tag=${_tag})
+b2sums=('SKIP')
+
+pkgver() {
+ cd tarpaulin
+
+ git describe --tags
+}
+
+prepare() {
+ cargo fetch \
+ --locked \
+ --target $CARCH-unknown-linux-gnu \
+ --manifest-path tarpaulin/Cargo.toml
+}
+
+build() {
+ export CARGO_TARGET_DIR=target
+ export LIBSSH2_SYS_USE_PKG_CONFIG=1
+ CFLAGS+=" -ffat-lto-objects"
+ cargo build \
+ --release \
+ --frozen \
+ --manifest-path tarpaulin/Cargo.toml
+}
+
+package() {
+ cd tarpaulin
+ install -Dm 755 "${srcdir}/target/release/${pkgname}" -t "${pkgdir}"/usr/bin/
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list