# Maintainer: Hristiyan Ivanov <hristiyan.d.ivanov@gmail.com>
pkgname=zeromq-gsl
pkgver=4.1.5
pkgrel=1
pkgdesc="A universal code generator"
url="https://zeromq.org/"
# riscv64 and loongarch64 blocked by not defined qbyte
arch="all !riscv64 !loongarch64"
license="GPL-3.0-or-later"
makedepends="pcre-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/zeromq/gsl/archive/v$pkgver.tar.gz
	fix-makefile.patch
	"
builddir="$srcdir/gsl-$pkgver"

build() {
	make
}

check() {
	make check
}

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

sha512sums="37d8dafe165297a8aea1a0255ebeb3ceb29d3bf297f1671a68eb2804202104abdf7ea49d4351d91f70771c782d4c14c7d4c028135af5df4499f5966c29f71064  zeromq-gsl-4.1.5.tar.gz
0acc55d05ad35fbac1fc0489c6aa277ac9db7e03eef49a559fc291b979629b6b30dae462ff7f709ea0cf0bfddc52144199de37c5efb451ee6872178d4117a065  fix-makefile.patch"
