wok annotate open-cobol/receipt @ rev 24832
updated libspiro and libspiro-dev (0.5.20150702 -> 20200505)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 25 06:24:51 2022 +0100 (2022-03-25) |
parents | ee63fcd28c2d |
children | 00e3b45c063b |
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@12985 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@12985 | 12 |
pascal@12985 | 13 DEPENDS="gmp ncurses db gcc" |
pascal@12985 | 14 BUILD_DEPENDS="$DEPENDS ncurses-dev gmp-dev db-dev bison flex" |
pascal@12985 | 15 |
pascal@24396 | 16 # What is the latest version available today? |
pascal@24396 | 17 current_version() |
pascal@24396 | 18 { |
pascal@24396 | 19 wget -O - https://sourceforge.net/projects/gnucobol/files/open-cobol/ 2>/dev/null | \ |
pascal@24396 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 21 sed '/scope="row/!d;s|.*/open-cobol/||;s|/.*||;q' |
pascal@24396 | 22 } |
pascal@24396 | 23 |
pascal@12985 | 24 # Rules to configure and make the package. |
pascal@12985 | 25 compile_rules() |
pascal@12985 | 26 { |
pascal@18950 | 27 export LDFLAGS="$LDFLAGS -lpthread" |
pascal@12985 | 28 ./configure --prefix=/usr --mandir=/usr/share/man \ |
pascal@12985 | 29 --localstatedir=/var \ |
pascal@12985 | 30 $CONFIGURE_ARGS && |
pascal@12985 | 31 make && |
pascal@12985 | 32 make DESTDIR=$DESTDIR install |
pascal@12985 | 33 } |
pascal@12985 | 34 |
pascal@12985 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@12985 | 36 genpkg_rules() |
pascal@12985 | 37 { |
pascal@15001 | 38 cp -a $install/usr $fs |
pascal@12985 | 39 } |