wok view open-cobol/receipt @ rev 25652

Up ntfs-3g (2022.10.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 06 11:59:08 2024 +0000 (9 months ago)
parents 9b180a3071fb
children
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 WEB_SITE="https://www.gnu.org/software/gnucobol/"
12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 WGET_URL="http://ftp.gnu.org/gnu/gnucobol/gnu-cobol-$VERSION.tar.gz"
14 PROVIDE="gnucobol"
16 DEPENDS="gmp ncurses db gcc"
17 BUILD_DEPENDS="$DEPENDS ncurses-dev gmp-dev db-dev bison flex"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/gnucobol/files/open-cobol/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/open-cobol/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export LDFLAGS="$LDFLAGS -lpthread"
31 ./configure --prefix=/usr --mandir=/usr/share/man \
32 --localstatedir=/var \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/usr $fs
42 }