From 2365439e585ab30c350309dd5c11d0298469df20 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 6 Jan 2023 22:46:27 +0300 Subject: Initial upload: datavzrd 2.11.1-1 --- .SRCINFO | 12 ++++++++++++ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..4e73880 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = datavzrd + pkgdesc = A tool to create visual HTML reports from collections of CSV/TSV tables + pkgver = 2.11.1 + pkgrel = 1 + url = https://github.com/datavzrd/datavzrd + arch = x86_64 + license = MIT + makedepends = cargo + source = datavzrd-2.11.1.tar.gz::https://github.com/datavzrd/datavzrd/archive/refs/tags/v2.11.1.tar.gz + sha256sums = 5d8f4caad32470af88f787a4208b2ea2a542826b2265510e363db2804f19e4f3 + +pkgname = datavzrd diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7524e79 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Yigit Sever + +pkgname=datavzrd +pkgver=2.11.1 +pkgrel=1 +pkgdesc="A tool to create visual HTML reports from collections of CSV/TSV tables" +arch=('x86_64') +url="https://github.com/datavzrd/datavzrd" +license=('MIT') +makedepends=(cargo) +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('5d8f4caad32470af88f787a4208b2ea2a542826b2265510e363db2804f19e4f3') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} -- cgit v1.2.3-70-g09d2