blob: 755821b2fe55c39342b809aeeb19e40098f8877e (
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
|
pkgname=bonsai
pkgver=2.2.1
pkgrel=1
pkgdesc="Terminal-based disk usage analyzer, TUI remake of GNOME Baobab"
arch=('x86_64')
url="https://github.com/orrnithogalum/bonsai.git#branch=main"
license=('AGPL-3.0-or-later')
depends=('glibc' 'gcc-libs')
makedepends=('cmake' 'gcc' 'git' 'xxd')
source=(git+"$url")
md5sums=('SKIP')
build() {
cd "$pkgname"
mkdir build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
cd "$pkgname"
install -Dm755 ./build/bonsai "$pkgdir/usr/bin/bonsai"
install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|