blob: 53944c5c28b90dc20caa2b9ca5771963cd03877e (
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: Bao Trinh <qubidt@gmail.com>
_pkgname=btsdu
pkgname=${_pkgname}-git
pkgver=r7.a9e131c
pkgrel=1
pkgdesc="Btrfs Snapshot Disk Usage Analyzer"
arch=("x86_64")
url="https://github.com/rkapl/btsdu"
provides=("${_pkgname}")
conflicts=("${_pkgname}")
license=('GPL2')
makedepends=('cargo' 'git')
optdepends=('ncdu: display results')
source=("$pkgname::git+https://github.com/rkapl/btsdu")
sha512sums=('SKIP')
pkgver() {
cd "$pkgname"
{
git describe --long 2>/dev/null ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
cargo build --release --all-features --target-dir=target
}
check() {
cd "$pkgname"
cargo test --release --locked --target-dir=target
}
package() {
cd "$pkgname"
install -Dm755 "target/release/${_pkgname}" -t "${pkgdir}/usr/bin"
}
|