summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4631e0e6213695f073de1dfcf27b11a2a99bfb4 (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
# Maintainer: ilovemikael <itsmeguys2247 at gmail dot com>
# Contributor: Jonas Møller <jonas.moeller2@protonmail.com>
pkgname=ncduh-git
_pkgname=ncdu
pkgver=v2.8.2.r0.g5b96a48
pkgrel=1
pkgdesc="Disk usage analyzer with an ncurses interface"
arch=("x86_64")
url="https://dev.yorhel.nl/ncdu"
license=('MIT')
depends=(
  'ncurses'
  'glibc'
  'zstd'
)
makedepends=("zig")
provides=('ncdu')
conflicts=('ncdu')
source=("git://g.blicky.net/ncdu.git")
md5sums=('SKIP')

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

prepare() {
    cd "$_pkgname"
}

build() {
    cd "$_pkgname"
    zig build
}

package() {
    cd "$_pkgname"
    install -Dm755 "zig-out/bin/ncdu" "${pkgdir}/usr/bin/ncdu"
}