summaryrefslogtreecommitdiffstats
path: root/datavzrd/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2023-03-22 20:31:48 +0300
committerYigit Sever2023-03-22 20:31:48 +0300
commitf571e067492d028249dc14c7ca9b213bcb88430b (patch)
tree4eaa14fe12efa8f434b8c21944a9b66192652489 /datavzrd/PKGBUILD
parentc8714cad52d1572845d7a73cded7ba36d3deb46f (diff)
parent5f49eaf6e41b5444fb2dc2e372d0180e1db84a49 (diff)
downloadpackages-f571e067492d028249dc14c7ca9b213bcb88430b.tar.gz
packages-f571e067492d028249dc14c7ca9b213bcb88430b.tar.bz2
packages-f571e067492d028249dc14c7ca9b213bcb88430b.zip
Add 'datavzrd/' from commit '5f49eaf6e41b5444fb2dc2e372d0180e1db84a49'
git-subtree-dir: datavzrd git-subtree-mainline: c8714cad52d1572845d7a73cded7ba36d3deb46f git-subtree-split: 5f49eaf6e41b5444fb2dc2e372d0180e1db84a49
Diffstat (limited to 'datavzrd/PKGBUILD')
-rw-r--r--datavzrd/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/datavzrd/PKGBUILD b/datavzrd/PKGBUILD
new file mode 100644
index 0000000..2ff5d26
--- /dev/null
+++ b/datavzrd/PKGBUILD
@@ -0,0 +1,36 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=datavzrd
4pkgver=2.17.1
5pkgrel=1
6pkgdesc="A tool to create visual HTML reports from collections of CSV/TSV tables"
7arch=('x86_64')
8url="https://github.com/datavzrd/datavzrd"
9license=('MIT')
10makedepends=(cargo)
11source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
12sha256sums=('6d805ee5e802bb885fd03686dc8e74c8bacb052d66c4a566faa836d8ebdf9f92')
13
14prepare() {
15 cd "$srcdir/$pkgname-$pkgver"
16 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
17}
18
19build() {
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
26check() {
27 cd "$srcdir/$pkgname-$pkgver"
28 export RUSTUP_TOOLCHAIN=stable
29 cargo test --frozen --all-features
30}
31
32package() {
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}