# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flashcache-utils
pkgver=3.1.3
pkgrel=3
pkgdesc="Userspace utilities for flashcache"
url="https://github.com/facebookarchive/flashcache"
arch="all"
license="GPL-2.0-or-later"
makedepends="$depends_dev linux-headers"
source="flashcache-$pkgver.tar.gz::https://github.com/facebookarchive/flashcache/archive/$pkgver.tar.gz"

builddir="$srcdir"/flashcache-$pkgver/src
options="!check"

build() {
	make -C utils
}

package() {
	make -C utils install DESTDIR="$pkgdir"
}

sha512sums="f7577993ca7962231b19d3141da22268f9b36bf2d60b83ad33c9cabcbae82db2ff2a1697a7137db61b06d5a8ea897a11dc7a80c9c85184c47feddd57d2297275  flashcache-3.1.3.tar.gz"
