# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=gmni
pkgver=1.0
pkgrel=2
pkgdesc="Gemini client"
options="!check" # No testsuite
url="https://git.sr.ht/~sircmpwn/gmni"
arch="all"
license="GPL-3.0-only"
makedepends="bearssl-dev scdoc"
subpackages="$pkgname-doc $pkgname-dev"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/gmni/archive/$pkgver.tar.gz
	gcc14-werror-calloc-transposed-args.patch
	"
build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}
sha512sums="
bfc5afb13e28fb360997a15660e22887c06e2c208580677a0b6a3c3cdb57a508277406ebf3ba2620a3c0b7d066296e77604d1cbc0473d3939bb6204c55850038  gmni-1.0.tar.gz
bfb06d0a431db7c4661814d2b918b65ce6783b7ceb1809fc29cb95e9eb889ccc6ce15aeef9bf1de8168d0385003769611164e6ada5da2f60f7752ee1bad05213  gcc14-werror-calloc-transposed-args.patch
"
