# Maintainer: Jiachen YANG <farseerfc@gmail.com>
# AUR Maintainer: Timofey Titovets <nefelim4ag@gmail.com>

pkgname=btrfs-heatmap
pkgver=9
pkgrel=1
pkgdesc="creates a visualization of how a btrfs filesystem is using the underlying disk space "
arch=('any')
url="https://github.com/knorrie/btrfs-heatmap"
license=('GPL3')
depends=('python-btrfs')
makedepends=('git')
source=("$pkgname"::"git://github.com/knorrie/btrfs-heatmap.git#tag=v${pkgver}")
replaces=('python-btrfs-heatmap')
conflicts=('python-btrfs-heatmap')
provides=('python-btrfs-heatmap')
md5sums=('SKIP')

package() {
    cd "$srcdir/${pkgname}/"
    install -Dm755 ./btrfs-heatmap -t "$pkgdir/usr/bin/"
    install -Dm755 man/btrfs-heatmap.1 -t "$pkgdir/usr/share/man/man1/"
}
