aboutsummaryrefslogtreecommitdiffstats
path: root/testing/broot/APKBUILD
blob: cbde9984c5f22a063759b713f24c8c4ae8b2ac45 (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=broot
pkgver=1.2.0
pkgrel=0
pkgdesc="New way to see and navigate directory trees"
url="https://github.com/Canop/broot"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le"  # limited by rust/cargo
license="MIT"
makedepends="cargo libgit2-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Canop/broot/archive/v$pkgver.tar.gz
	minimize-size.patch
	"

export LIBGIT2_SYS_USE_PKG_CONFIG=1  # Use system libgit2

build() {
	cargo build --release --locked
}

check() {
	cargo test --locked
}

package() {
	install -Dm0755 target/release/broot "$pkgdir"/usr/bin/broot
	install -Dm0644 man/page "$pkgdir"/usr/share/man/man1/broot.1
}

sha512sums="0d849fb4df2ff62764d030c2e5d35f5f74bb678c552261ca543318b6a32c8ed7af5dc40a269f60abcaed796a342182d758e804d335a8a771cf17d5bb5d559774  broot-1.2.0.tar.gz
05bbce2c8553beba42d13e50de87e4a320aed45787d788269388e04408cf9325dba5cd44ce24c30547483e7b6e9561d3aca17e06ca2b8097fc24a387395dac0b  minimize-size.patch"