diff options
author | Yigit Sever | 2023-06-08 01:18:08 +0300 |
---|---|---|
committer | Yigit Sever | 2023-06-08 01:18:08 +0300 |
commit | 8f41a18fbba03e13f90904523993cab4abbbc0bc (patch) | |
tree | c27e3f5158651ccc52321ec6aecc5c0364330e4d /datavzrd/PKGBUILD | |
parent | db9cdd2fcc8ad6b124b9cf3a3baa97d0b03848fa (diff) | |
parent | a118ced2796ddcc4cc4cdd6787e862e5caf6df56 (diff) | |
download | packages-8f41a18fbba03e13f90904523993cab4abbbc0bc.tar.gz packages-8f41a18fbba03e13f90904523993cab4abbbc0bc.tar.bz2 packages-8f41a18fbba03e13f90904523993cab4abbbc0bc.zip |
Add 'datavzrd/' from commit 'a118ced2796ddcc4cc4cdd6787e862e5caf6df56'
git-subtree-dir: datavzrd
git-subtree-mainline: db9cdd2fcc8ad6b124b9cf3a3baa97d0b03848fa
git-subtree-split: a118ced2796ddcc4cc4cdd6787e862e5caf6df56
Diffstat (limited to 'datavzrd/PKGBUILD')
-rw-r--r-- | datavzrd/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/datavzrd/PKGBUILD b/datavzrd/PKGBUILD new file mode 100644 index 0000000..d194a49 --- /dev/null +++ b/datavzrd/PKGBUILD | |||
@@ -0,0 +1,36 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | |||
3 | pkgname=datavzrd | ||
4 | pkgver=2.19.2 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="A tool to create visual HTML reports from collections of CSV/TSV tables" | ||
7 | arch=('x86_64') | ||
8 | url="https://github.com/datavzrd/datavzrd" | ||
9 | license=('MIT') | ||
10 | makedepends=(cargo) | ||
11 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") | ||
12 | sha256sums=('634ebdb8a2200c38256411938208380bf1650b31b20981868cf62da6faa6a17b') | ||
13 | |||
14 | prepare() { | ||
15 | cd "$srcdir/$pkgname-$pkgver" | ||
16 | cargo fetch --locked --target "$CARCH-unknown-linux-gnu" | ||
17 | } | ||
18 | |||
19 | build() { | ||
20 | cd "$srcdir/$pkgname-$pkgver" | ||
21 | export RUSTUP_TOOLCHAIN=stable | ||
22 | export CARGO_TARGET_DIR=target | ||
23 | cargo build --frozen --release --all-features | ||
24 | } | ||
25 | |||
26 | check() { | ||
27 | cd "$srcdir/$pkgname-$pkgver" | ||
28 | export RUSTUP_TOOLCHAIN=stable | ||
29 | cargo test --frozen --all-features | ||
30 | } | ||
31 | |||
32 | package() { | ||
33 | cd "$srcdir/$pkgname-$pkgver" | ||
34 | install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" | ||
35 | install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
36 | } | ||