summaryrefslogtreecommitdiff
path: root/user/gnucobol/APKBUILD
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-06-28 08:54:34 -0400
committerMax Rees <maxcrees@me.com>2019-06-28 13:06:45 -0400
commitef2c616773b00d4cc14eca7da2e4fb4b42ee2882 (patch)
treecb544f348e50c4b9e764d1cb949c85218370a27b /user/gnucobol/APKBUILD
parent715edc6d997b0b7cd03029ca32a67cbb79727121 (diff)
downloadpackages-ef2c616773b00d4cc14eca7da2e4fb4b42ee2882.tar.gz
packages-ef2c616773b00d4cc14eca7da2e4fb4b42ee2882.tar.bz2
packages-ef2c616773b00d4cc14eca7da2e4fb4b42ee2882.tar.xz
packages-ef2c616773b00d4cc14eca7da2e4fb4b42ee2882.zip
user/gnucobol: new package
Diffstat (limited to 'user/gnucobol/APKBUILD')
-rw-r--r--user/gnucobol/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/user/gnucobol/APKBUILD b/user/gnucobol/APKBUILD
new file mode 100644
index 000000000..c95083a7f
--- /dev/null
+++ b/user/gnucobol/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Max Rees <maxcrees@me.com>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=gnucobol
+pkgver=3.0_rc1
+_pkgver=3.0-rc1
+pkgrel=0
+pkgdesc="Free COBOL compiler"
+url="https://sourceforge.net/projects/open-cobol/"
+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 ncurses-dev"
+makedepends="help2man texinfo"
+subpackages="$pkgname-doc $pkgname-lang"
+source="https://downloads.sourceforge.net/project/open-cobol/gnu-cobol/3.0/$pkgname-$_pkgver.tar.xz
+ https://dev.sick.bike/dist/newcob.val.Z
+ keep-debug-flags.patch
+ big-endian.patch
+ tests-are-fatal.patch"
+builddir="$srcdir/$pkgname-$_pkgver"
+
+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() {
+ make check
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="da669f7bef0c6664723dc88c20e28236ea31d5c933d9129b0132e929eb66f723995d3428b056164cf105bc22b38b8bc5fbf9d0d5b76df4ce6c08045837930fa0 gnucobol-3.0-rc1.tar.xz
+eb784866d1a335834074fbe103b5c5f5da810d847ae14a64316ecbb2c0f95ef751d2f2ec609b8fa21ef0b775817dc61115a574608ec89750d779ae0afbb95379 newcob.val.Z
+f45611c1298680b0c763094af662b3d1925d32379d33faff77862d7eaa3bf6225f68d5160a39a0822f54b570c923a53bc72dec54cff4f04f1162515834a40be2 keep-debug-flags.patch
+f7c1249db9d0f8d3a4eda732db93970f73fe649d1725b0b73c92af4885bc816d8727dbbcb8e9a1fb998997f3beed7de2812202749f05bbe1471b907737645648 big-endian.patch
+ca5ba1e19e5ff8740008b45ffcea4c1e8e34fc62246f3e635424ae1ec374c5cd9d7cc94d371690c021ccf82e293db7235143ebcaadb20ae5e4fc258749ff56c4 tests-are-fatal.patch"