# Submitter: kpcyrd # Maintainer: Elmar Klausmeier pkgbase=open-cobol pkgname=('open-cobol') pkgver=3.2.1 cobolver=3.2 pkgrel=2 pkgdesc="COBOL compiler" url="https://www.gnu.org/software/gnucobol/" arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') source=("$pkgname-$pkgver.tar.xz::https://sourceforge.net/projects/gnucobol/files/gnucobol/3.2/gnucobol-${cobolver}.tar.xz/download" "https://www.itl.nist.gov/div897/ctg/suites/newcob.val.Z") license=("GPL") depends=("gcc" "db" "gmp" "json-c" "libxml2") checkdepends=("perl") makedepends=("gcc") sha256sums=('3bb48af46ced4779facf41fdc2ee60e4ccb86eaa99d010b36685315df39c2ee2' '1e9a92ddbd5d730cbeb764281f7810c22b18e0163985b09675393ab22bbd61f9') build() { cd gnucobol-${cobolver} ./configure --prefix=/usr --infodir=/usr/share/info --disable-hardening make } # Suggested by Simon Sobisch, 22-Sep-2021 check() { cd gnucobol-${cobolver} make check cp ../../newcob.val.Z tests/cobol85/ && make test } package() { cd gnucobol-"$cobolver" make DESTDIR="$pkgdir" install }