aboutsummaryrefslogtreecommitdiffstats
path: root/testing/broot/APKBUILD
blob: dba02df1a30b51791d607f1d7ad0e7bd510a442e (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.1.11
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="1e934916db2d01e8deb89143187b8651965743b94b2d3b6e97fcf9ff77606384f28a1a2f321dfc78e8749712353c4535630705a99b205bff3d8a0bb1f540a8ad  broot-1.1.11.tar.gz
05bbce2c8553beba42d13e50de87e4a320aed45787d788269388e04408cf9325dba5cd44ce24c30547483e7b6e9561d3aca17e06ca2b8097fc24a387395dac0b  minimize-size.patch"