diff options
Diffstat (limited to 'datavzrd')
-rw-r--r-- | datavzrd/.SRCINFO | 12 | ||||
-rw-r--r-- | datavzrd/PKGBUILD | 36 |
2 files changed, 48 insertions, 0 deletions
diff --git a/datavzrd/.SRCINFO b/datavzrd/.SRCINFO new file mode 100644 index 0000000..0d86a4f --- /dev/null +++ b/datavzrd/.SRCINFO | |||
@@ -0,0 +1,12 @@ | |||
1 | pkgbase = datavzrd | ||
2 | pkgdesc = A tool to create visual HTML reports from collections of CSV/TSV tables | ||
3 | pkgver = 2.18.3 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/datavzrd/datavzrd | ||
6 | arch = x86_64 | ||
7 | license = MIT | ||
8 | makedepends = cargo | ||
9 | source = datavzrd-2.18.3.tar.gz::https://github.com/datavzrd/datavzrd/archive/refs/tags/v2.18.3.tar.gz | ||
10 | sha256sums = b4369a48c6e36363d49910aa8ea8e5806f2cf1661ae2ab1e82801cb393c469ba | ||
11 | |||
12 | pkgname = datavzrd | ||
diff --git a/datavzrd/PKGBUILD b/datavzrd/PKGBUILD new file mode 100644 index 0000000..6c576fb --- /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.18.3 | ||
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=('b4369a48c6e36363d49910aa8ea8e5806f2cf1661ae2ab1e82801cb393c469ba') | ||
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 | } | ||