diff options
Diffstat (limited to 'datavzrd')
-rw-r--r-- | datavzrd/.SRCINFO | 21 | ||||
-rw-r--r-- | datavzrd/PKGBUILD | 36 |
2 files changed, 57 insertions, 0 deletions
diff --git a/datavzrd/.SRCINFO b/datavzrd/.SRCINFO new file mode 100644 index 0000000..b029f51 --- /dev/null +++ b/datavzrd/.SRCINFO | |||
@@ -0,0 +1,21 @@ | |||
1 | pkgbase = datavzrd | ||
2 | pkgdesc = A tool to create visual HTML reports from collections of CSV/TSV tables | ||
3 | <<<<<<< HEAD | ||
4 | pkgver = 2.18.1 | ||
5 | ======= | ||
6 | pkgver = 2.17.1 | ||
7 | >>>>>>> 5f49eaf6e41b5444fb2dc2e372d0180e1db84a49 | ||
8 | pkgrel = 1 | ||
9 | url = https://github.com/datavzrd/datavzrd | ||
10 | arch = x86_64 | ||
11 | license = MIT | ||
12 | makedepends = cargo | ||
13 | <<<<<<< HEAD | ||
14 | source = datavzrd-2.18.1.tar.gz::https://github.com/datavzrd/datavzrd/archive/refs/tags/v2.18.1.tar.gz | ||
15 | sha256sums = 4be1e791c43f35de4ab8a7048309f8dc9d3ef41a3c6daaedb629113bc0343f01 | ||
16 | ======= | ||
17 | source = datavzrd-2.17.1.tar.gz::https://github.com/datavzrd/datavzrd/archive/refs/tags/v2.17.1.tar.gz | ||
18 | sha256sums = 6d805ee5e802bb885fd03686dc8e74c8bacb052d66c4a566faa836d8ebdf9f92 | ||
19 | >>>>>>> 5f49eaf6e41b5444fb2dc2e372d0180e1db84a49 | ||
20 | |||
21 | pkgname = datavzrd | ||
diff --git a/datavzrd/PKGBUILD b/datavzrd/PKGBUILD new file mode 100644 index 0000000..e6a7717 --- /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.1 | ||
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=('4be1e791c43f35de4ab8a7048309f8dc9d3ef41a3c6daaedb629113bc0343f01') | ||
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 | } | ||