wok annotate open-cobol/receipt @ rev 24978

Add memtest-efi32 & memtest-efi64
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 07 11:09:47 2022 +0000 (2022-05-07)
parents 080c1dff8494
children 9b180a3071fb
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@12985 10 WEB_SITE="http://www.opencobol.org/"
pascal@24978 11 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@24978 12 WGET_URL="http://ftp.gnu.org/gnu/gnucobol/gnu-cobol-$VERSION.tar.gz"
pascal@12985 13
pascal@12985 14 DEPENDS="gmp ncurses db gcc"
pascal@12985 15 BUILD_DEPENDS="$DEPENDS ncurses-dev gmp-dev db-dev bison flex"
pascal@12985 16
pascal@24396 17 # What is the latest version available today?
pascal@24396 18 current_version()
pascal@24396 19 {
pascal@24396 20 wget -O - https://sourceforge.net/projects/gnucobol/files/open-cobol/ 2>/dev/null | \
pascal@24396 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24396 22 sed '/scope="row/!d;s|.*/open-cobol/||;s|/.*||;q'
pascal@24396 23 }
pascal@24396 24
pascal@12985 25 # Rules to configure and make the package.
pascal@12985 26 compile_rules()
pascal@12985 27 {
pascal@18950 28 export LDFLAGS="$LDFLAGS -lpthread"
pascal@12985 29 ./configure --prefix=/usr --mandir=/usr/share/man \
pascal@12985 30 --localstatedir=/var \
pascal@12985 31 $CONFIGURE_ARGS &&
pascal@12985 32 make &&
pascal@12985 33 make DESTDIR=$DESTDIR install
pascal@12985 34 }
pascal@12985 35
pascal@12985 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12985 37 genpkg_rules()
pascal@12985 38 {
pascal@15001 39 cp -a $install/usr $fs
pascal@12985 40 }