blob: f0807703b55990d9f9b218fc9ab4d2b606c5e8ad (
plain) (
tree)
|
|
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=gnucobol
pkgver=3.2
pkgrel=0
pkgdesc="Free COBOL compiler"
url="https://www.gnu.org/software/gnucobol/"
arch="all"
license="GPL-3.0+ AND LGPL-3.0+ AND GFDL-1.3"
# Since it compiles to C as an intermediate, the headers / libraries must
# always be present and thus there is no -dev subpackage.
depends="db-dev gmp-dev json-c-dev libxml2-dev ncurses-dev"
makedepends="autoconf automake help2man libtool texinfo"
subpackages="$pkgname-doc $pkgname-lang"
source="https://ftp.gnu.org/gnu/gnucobol/gnucobol-$pkgver.tar.xz
https://distfiles.adelielinux.org/source/archive/$pkgname-$pkgver/newcob.val.Z
0001-move-packed-decimal.patch
0002-errno.patch
"
prepare() {
default_prepare
autoreconf -vif
# For "make test"
cp "$srcdir/newcob.val.Z" "$builddir/tests/cobol85"
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--enable-debug
make
}
check() {
#1045
for k in 774 775 818 887 1139 1140 1203 1215; do
sed -i tests/testsuite -e "/^$k;/d";
done
make test
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="1aef3c1bf7283219a7cb1e7b38ba5c5e299c0a83666ab6afdbb5713f1f791b23575ca51d546c4f2f036217060269028bbce4b5babbeb4f721b57495d5f258ff7 gnucobol-3.2.tar.xz
eb784866d1a335834074fbe103b5c5f5da810d847ae14a64316ecbb2c0f95ef751d2f2ec609b8fa21ef0b775817dc61115a574608ec89750d779ae0afbb95379 newcob.val.Z
d913d314172b4476ac7488010a03d52aac4c25502333a146725d459655f128026b74b938a2224d15fbfbd91f91dad7202d1546e7f77c01e16e242341bbada62c 0001-move-packed-decimal.patch
caaaca806c04db9e89f535c31444c647da926b76bed421c44ed1ea199d75d2fc4e1a5141eeff9c0985c2430513d416756443e8ca807bda9c3a496171e22026f0 0002-errno.patch"
|