SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "open-cobol"

# SliTaz package receipt.

PACKAGE="open-cobol"
VERSION="1.1"
CATEGORY="development"
SHORT_DESC="Cobol compiler."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
#WEB_SITE="http://www.opencobol.org/"
WEB_SITE="https://www.gnu.org/software/gnucobol/"
#WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
WGET_URL="http://ftp.gnu.org/gnu/gnucobol/gnu-cobol-$VERSION.tar.gz"
PROVIDE="gnucobol"

DEPENDS="gmp ncurses db gcc"
BUILD_DEPENDS="$DEPENDS ncurses-dev gmp-dev db-dev bison flex"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/gnucobol/files/open-cobol/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/open-cobol/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -lpthread"
    ./configure --prefix=/usr --mandir=/usr/share/man \
        --localstatedir=/var \
    $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.   
genpkg_rules()                                      
{
    cp -a $install/usr $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)