wok view open-cobol/receipt @ rev 25680
updated gnu-efi (3.0.14 -> 3.0.17)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 18 18:46:02 2024 +0100 (8 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 }