# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=wiggle
pkgver=1.3
pkgrel=0
pkgdesc="Tool for applying patches with conflicts"
url="https://github.com/neilbrown/wiggle"
arch="all"
license="GPL-2.0-or-later"
makedepends="ncurses-dev groff"
checkdepends="bash"
subpackages="$pkgname-doc"
source="https://github.com/neilbrown/wiggle/archive/refs/tags/v$pkgver/wiggle-$pkgver.tar.gz"

build() {
	make wiggle wiggle.man
}

check() {
	make test
}

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

sha512sums="
aee885e6ae2406eab2aa40fe5433f7d42dbbbecbae2d2d4d359a9858c6f4cb73bee56799b5795b888a79316c359b5215e1b85e4d148dbebff983b9533d314d58  wiggle-1.3.tar.gz
"
