# Contributor: Daniel Santana <daniel@santana.tech>
# Maintainer: Daniel Santana <daniel@santana.tech>
pkgname=e2tools
pkgver=0.1.0
pkgrel=2
pkgdesc="Utilities for manipulating files in an ext2/ext3 filesystem"
url="https://e2tools.github.io/"
arch="all"
license="GPL-2.0-only"
makedepends="e2fsprogs-dev"
checkdepends="e2fsprogs"
subpackages="$pkgname-doc"
source="https://github.com/e2tools/e2tools/releases/download/v$pkgver/e2tools-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

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

sha512sums="5fde992727946d253acd46987944bdf49615d2ab45bbea715c86b304d117c6900dd70fcffb093f3d564247e27978b78b4710e7fea7ffd28375e804955fe4d5c9  e2tools-0.1.0.tar.gz"
