summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a256c292e5eaf0554c302e3c0320b2bbc4818d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# shellcheck disable=SC2034,SC2154
# - SC2034 - appears unused.
# - SC2154 - pkgdir is referenced but not assigned.

# Maintainer: Azat Khuzhin <a3at.mail@gmail.com>
pkgname=chdig-git
pkgver=25.6.1.r0.g754f2c2
pkgrel=1
pkgdesc="Dig into ClickHouse with TUI interface (compile from upstream)"
arch=('x86_64' 'aarch64')
depends=('bash')
makedepends=('git' 'rust')
conflicts=("chdig")
provides=("chdig")
url="https://github.com/azat/chdig"
license=('MIT')
source=(
    "$pkgname::git+$url"
)
sha256sums=(
    'SKIP'
)

# Some of this may have fortify sources of whatever this could break musl build
CFLAGS=
CXXFLAGS=
LDFLAGS=
LTOFLAGS=

pkgver() {
    cd "$srcdir/$pkgname"
    git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    cd "$srcdir/$pkgname"
    make build build_completion
}

package() {
    cd $srcdir/$pkgname
    make install DESTDIR="$pkgdir/usr"
}
# vim set: ts=4 sw=4 et