# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=ssdeep
pkgver=2.14.1
pkgrel=2
pkgdesc="Fuzzy hashing API and toolk"
url="https://ssdeep-project.github.io/ssdeep/index.html"
arch="all"
license="GPL-2.0-or-later"
makedepends="automake autoconf libtool"
subpackages="$pkgname-static libfuzzy2 libfuzzy2-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ssdeep-project/ssdeep/archive/release-$pkgver.tar.gz"
options="!check" # No test suite
builddir="$srcdir/ssdeep-release-$pkgver"

prepare() {
	default_prepare

	autoreconf -fi
}

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

}

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

libfuzzy2() {
	amove usr/lib/libfuzzy.so.*
}

sha512sums="6f45a961800fcbd4a5c8f1dac9afc7e0791ecd5aded28f3048d4ade68870a8e928704c80a5778a463b9492d561ae4568785c2b8c873f485d5d9c500d74955f07  ssdeep-2.14.1.tar.gz"
