summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1617286f051eee8ef64ea3e85651649a8480a5c (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
# Maintainer: Jonne Haß <me@jhass.eu>
pkgname=snazzer-git
pkgver=0
pkgrel=1
pkgdesc="btrfs snapshotting and backup system offering snapshot measurement, transport and pruning. "
arch=('any')
url="https://github.com/csirac2/snazzer"
license=('BSD')
depends=('btrfs-progs')
source=("git+https://github.com/csirac2/snazzer.git")

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

package() {
  cd "$srcdir/snazzer"
  install -Dm755 -t "$pkgdir/usr/bin/$script" snazzer snazzer-measure snazzer-prune-candidates snazzer-receive snazzer-send-wrapper
  install -Dm644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
  install -dm755 "$pkgdir/usr/share/doc/$pkgname"
  cp -av doc/* "$pkgdir/usr/share/doc/$pkgname"
}
sha256sums=('SKIP')