summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2023-01-06 22:46:27 +0300
committerYigit Sever2023-01-06 22:46:27 +0300
commit2365439e585ab30c350309dd5c11d0298469df20 (patch)
tree02b84a83ce8ef15b500808928d1f0a07be0a87a0
downloadpackages-2365439e585ab30c350309dd5c11d0298469df20.tar.gz
packages-2365439e585ab30c350309dd5c11d0298469df20.tar.bz2
packages-2365439e585ab30c350309dd5c11d0298469df20.zip
Initial upload: datavzrd 2.11.1-1
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD36
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..4e73880
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
1pkgbase = datavzrd
2 pkgdesc = A tool to create visual HTML reports from collections of CSV/TSV tables
3 pkgver = 2.11.1
4 pkgrel = 1
5 url = https://github.com/datavzrd/datavzrd
6 arch = x86_64
7 license = MIT
8 makedepends = cargo
9 source = datavzrd-2.11.1.tar.gz::https://github.com/datavzrd/datavzrd/archive/refs/tags/v2.11.1.tar.gz
10 sha256sums = 5d8f4caad32470af88f787a4208b2ea2a542826b2265510e363db2804f19e4f3
11
12pkgname = datavzrd
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..7524e79
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=datavzrd
4pkgver=2.11.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=('5d8f4caad32470af88f787a4208b2ea2a542826b2265510e363db2804f19e4f3')
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}