summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31311f87fb7eddd09997865beb918cf59a7ba34e (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=0.4.0.r31.g0bf05ba
pkgrel=1
pkgdesc="Dig into ClickHouse with TUI interface (compile from upstream)"
arch=('x86_64')
depends=('bash')
makedepends=('git' 'rust' 'pyoxidizer' 'python')
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