summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d0b4cf2ad0a2a425e152536f49db1be39025d56 (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
# Maintainer: Thomas WeiƟschuh <thomas t-8ch de>

pkgname=bcachefs-tools
epoch=2
pkgver=24
pkgrel=1
pkgdesc="bcachefs filesystem utilities"
arch=(x86_64)
url="https://evilpiepirate.org/git/bcachefs-tools.git/"
license=('GPL2')
depends=(liburcu libaio util-linux-libs keyutils zstd libsodium)
checkdepends=(python-pytest)
source=("git+https://evilpiepirate.org/git/bcachefs-tools.git#tag=v${pkgver}")
sha256sums=('SKIP')

prepare() {
	cd "$pkgname"
	sed -i -e 's|ROOT_SBINDIR=/sbin|ROOT_SBINDIR=$(PREFIX)/bin|' Makefile
}

build() {
	cd "$pkgname"
	make PREFIX=/usr $MAKEFLAGS
}

package() {
	cd "$pkgname"
	make PREFIX=/usr $MAKEFLAGS DESTDIR="$pkgdir/" install
}