# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=duperemove
pkgver=0.15.1
pkgrel=0
pkgdesc="Tools for deduping file systems"
url="https://github.com/markfasheh/duperemove"
arch="all"
license="GPL-2.0-only"
depends="cmd:lscpu"
makedepends="
	glib-dev
	libbsd-dev
	linux-headers
	sqlite-dev
	xxhash-dev
	"
options="!check"  # no tests provided
subpackages="$pkgname-doc"
source="https://github.com/markfasheh/duperemove/archive/v$pkgver/duperemove-$pkgver.tar.gz"

build() {
	# Defining this 2 variables prevents make from calling git
	make VERSION=$pkgver IS_RELEASE=1
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
ab8b2e979d590b9a90c2bdb541e50e176979536fb5294204509f3f70f85b6997e579ec0d0f86b7ef719ef53503ff59a2e92d7febaa3f22679b7fcb0a581f3f6c  duperemove-0.15.1.tar.gz
"
