summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a6d565ca63e889175aabd8ff406089b98325c87 (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
pkgname=mergerfs-tools-git
_pkgname=mergerfs-tools
pkgver=r67.0138e09
pkgrel=2
pkgdesc="Tools to help manage data in a mergerfs pool"
arch=('any')
url="https://github.com/trapexit/mergerfs-tools"
license=('ISC')
makedepends=('git')
depends=('python-xattr')
optdepends=('rsync: required for mergerfs.balance and mergerfs.dup')
source=("git://github.com/trapexit/mergerfs-tools")
sha512sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$_pkgname"
  make DESTDIR="$pkgdir" PREFIX=/usr install
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}