wok-6.x annotate open-cobol/receipt @ rev 25292

updated rubberband (2.0.2 -> 3.0.0)
author Hans-G?nter Theisgen
date Tue Jul 19 10:19:50 2022 +0100 (2022-07-19)
parents 00e3b45c063b
children
rev   line source
pascal@12985 1 # SliTaz package receipt.
pascal@12985 2
pascal@12985 3 PACKAGE="open-cobol"
pascal@12985 4 VERSION="1.1"
pascal@12985 5 CATEGORY="development"
pascal@12985 6 SHORT_DESC="Cobol compiler."
pascal@12985 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
pascal@12985 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24980 10 #WEB_SITE="http://www.opencobol.org/"
pascal@24980 11 WEB_SITE="https://www.gnu.org/software/gnucobol/"
pascal@24978 12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@24978 13 WGET_URL="http://ftp.gnu.org/gnu/gnucobol/gnu-cobol-$VERSION.tar.gz"
pascal@24980 14 PROVIDE="gnucobol"
pascal@12985 15
pascal@12985 16 DEPENDS="gmp ncurses db gcc"
pascal@12985 17 BUILD_DEPENDS="$DEPENDS ncurses-dev gmp-dev db-dev bison flex"
pascal@12985 18
pascal@24396 19 # What is the latest version available today?
pascal@24396 20 current_version()
pascal@24396 21 {
pascal@24396 22 wget -O - https://sourceforge.net/projects/gnucobol/files/open-cobol/ 2>/dev/null | \
pascal@24396 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24396 24 sed '/scope="row/!d;s|.*/open-cobol/||;s|/.*||;q'
pascal@24396 25 }
pascal@24396 26
pascal@12985 27 # Rules to configure and make the package.
pascal@12985 28 compile_rules()
pascal@12985 29 {
pascal@18950 30 export LDFLAGS="$LDFLAGS -lpthread"
pascal@12985 31 ./configure --prefix=/usr --mandir=/usr/share/man \
pascal@12985 32 --localstatedir=/var \
pascal@12985 33 $CONFIGURE_ARGS &&
pascal@12985 34 make &&
pascal@12985 35 make DESTDIR=$DESTDIR install
pascal@12985 36 }
pascal@12985 37
pascal@12985 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12985 39 genpkg_rules()
pascal@12985 40 {
pascal@15001 41 cp -a $install/usr $fs
pascal@12985 42 }