wok-current view open-cobol/receipt @ rev 24418

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