summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05713a8a2cab07f434e6e49370ebc81fcf15bc88 (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
40
# Maintainer    : Dan Beste <dan.ray.beste@gmail.com>

pkgname='bcachefs-tools'
pkgver=r268.b1814f2
pkgrel=1
pkgdesc='Bcachefs filesystem utilities'
arch=('i686' 'x86_64')
url='http://bcachefs.org/'
license=('unknown')
makedepends=('git' 'libsodium' 'liburcu' 'libscrypt-git')
optdepends=('libscrypt: Currently broken with some makeflags')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=('git+https://evilpiepirate.org/git/bcachefs-tools.git')
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"

  printf "r%s.%s"                   \
    "$(git rev-list --count HEAD)"  \
    "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname}"

  make
}

package() {
  cd "${pkgname}"

  make                      \
    DESTDIR="${pkgdir}/usr" \
    ROOT_SBINDIR=/bin       \
    install
}

# vim: ts=2 sw=2 et: