summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a174a0424dd94e988056379f78051f93dc6046aa (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=scorch-git
pkgver=r16.301af6a
pkgrel=1
pkgdesc="discover silent corruption on a filesystem"
arch=('any')
url="https://github.com/trapexit/scorch"
license=('GPL')
depends=('python')
makedepends=('git')
provides=("${pkgname%-git}=${pkgver}")
conflicts=("${pkgname%-git}")
source=("git+$url.git")
md5sums=('SKIP')

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

package() {
  cd "$srcdir/${pkgname%-git}"
  install -Dm755 scorch  "$pkgdir/usr/bin/scorch"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}