# Contributor: mio <miyopan@e.email>
# Maintainer: mio <miyopan@e.email>
pkgname=iec16022
pkgver=0.3.1
pkgrel=0
pkgdesc="DataMatrix 2D barcode generator"
url="https://rdoeffinger.github.io/"
license="GPL-2.0-or-later"
arch="all"
makedepends="autoconf automake libtool popt-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="iec16022-$pkgver.tar.gz::https://github.com/rdoeffinger/iec16022/archive/v$pkgver.tar.gz"
options="!check" # Temporarily disabled due to 1 fail in testsuite

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

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

sha512sums="
16d30a47abf64c1dcb2188a0ef3153cee222115c93c4ccd4d3560df2876aa6f52b92a15963f8668a9d741c8e65856a5ba5274bf8f227bcf88bb91134728b1edb  iec16022-0.3.1.tar.gz
"
