summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a84218c09283457ef20884a31394bb4fe026921c (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: zapp-brannigan <fuerst.reinje@web.de>

_pkgname=vdoestimator
pkgname="$_pkgname"-git
pkgver=r23.a33ce60
pkgrel=1
pkgdesc="Estimate space savings from dm-vdo virtual device "
url="https://github.com/dm-vdo/vdoestimator"
license=('GPL-2.0')
arch=(x86_64)
makedepends=('git')
source=("git+$url.git")
md5sums=('SKIP')

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

prepare() {
cd $srcdir/$_pkgname
make lz4
make uds
make vdoestimator
}
package() {
mkdir -p $pkgdir/usr/bin
install -o root -g root -m 0755 $srcdir/$_pkgname/vdoestimator $pkgdir/usr/bin
}