# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xdelta3
pkgver=3.0.11
pkgrel=0
pkgdesc="A diff utility which works with binary files"
url="http://xdelta.org/"
arch="all"
license="GPL"
depends=
makedepends=
subpackages="$pkgname-doc"
source="https://github.com/jmacd/xdelta-devel/releases/download/v$pkgver/xdelta3-$pkgver.tar.gz
	"

prepare() {
	cd $srcdir/$pkgname-$pkgver
}

build() {
	cd $srcdir/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make
}

package() {
	cd $srcdir/$pkgname-$pkgver
	make DESTDIR="${pkgdir}" install
}

md5sums="445d8be2ac512113d5ca601ae8359626  xdelta3-3.0.11.tar.gz"
sha256sums="0ccc9751ceaa4d90d6b06938a4deddb481816f5d9284bd07d2e728609cb300aa  xdelta3-3.0.11.tar.gz"
sha512sums="41c48e28f92ad50a737cf0acac150fe17d1132e9a652c482d751c8c4e745c6922d576a183eeabae343a1a238ed8c53353e537977628c86eb599ab3d1c01e7c52  xdelta3-3.0.11.tar.gz"
