# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=wordgrinder
pkgver=0.7.1
pkgrel=0
pkgdesc="A simple Unicode-aware word processor that runs on the console"
url="https://cowlark.com/wordgrinder/"
arch="all"
license="MIT"
makedepends="ninja zlib-dev ncurses-dev uthash-dev freetype-dev libxft-dev"
subpackages="$pkgname-doc"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/davidgiven/wordgrinder/archive/$pkgver.tar.gz
	fixes-musl.patch"

builddir="$srcdir/$pkgname-$pkgver"

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

sha512sums="9976ade4be5264ae1afccd7a7fe4e321414919c5b6fbd6a0db4d024dc35721a8e6530f51176f24e9c17eff735b633ffd281de68802a76da54207a1c3dba0fd05  wordgrinder-0.7.1.tar.gz
559eb2c04ba950fa72a0474e6bb74d2fbe64e8322af13d9b15622bde93013d0b8adba30fda2fa8e0f1e86ba1b7a28c238c5284c98685f118117314e2dea9b4ed  fixes-musl.patch"
