pkg(cobol-3.1.2): Adds cobol 3.1.2 (gnucobol) (#235)
This commit is contained in:
parent
65cbefa94e
commit
3355ffafb2
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to build your package in here
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
curl -OL "https://downloads.sourceforge.net/project/gnucobol/gnucobol/3.1/gnucobol-3.1.2.tar.xz"
|
||||
|
||||
tar xf gnucobol-3.1.2.tar.xz --strip-components=1
|
||||
|
||||
# === autoconf based ===
|
||||
./configure --prefix "$PREFIX" --without-db
|
||||
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
cd ../
|
||||
rm -rf build
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
cobc -o binary --free -x -L lib "$@"
|
||||
chmod +x binary
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export PATH=$PWD/bin:$PATH
|
||||
export LD_LIBRARY_PATH=$PWD/lib
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "cobol",
|
||||
"version": "3.1.2",
|
||||
"aliases": ["cob"]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
shift
|
||||
./binary "$@"
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
*> Test Program
|
||||
identification division.
|
||||
program-id. ok-test.
|
||||
|
||||
procedure division.
|
||||
display "OK"
|
||||
goback.
|
||||
end program ok-test.
|
Loading…
Reference in New Issue