wok view gambas2/receipt @ rev 24535

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 11:49:52 2022 +0000 (2022-02-23)
parents 93d12db6c664
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="gambas2"
4 VERSION="2.24.0"
5 CATEGORY="development"
6 SHORT_DESC="Free development environment based on a Basic interpreter"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://gambas.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/gambas/$TARBALL"
12 TAGS="interpreter basic"
14 DEPENDS="poppler util-linux-uuid lcms tiff jpeg libpng"
15 BUILD_DEPENDS="poppler-dev util-linux-uuid-dev lcms-dev tiff-dev jpeg-dev \
16 libpng-dev autoconf automake libtool freetype-dev fontconfig-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/gambas/files/gambas2/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/gambas2/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i '/0.17.0 poppler/{N;p;s/17/20/g}' gb.pdf/configure.ac
30 cp $stuff/CPdfDocument.cpp gb.pdf/src/CPdfDocument.cpp
31 ./reconf-all
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
38 make -j 1 DESTDIR=$DESTDIR install 2>&1 | \
39 sed 's/ERROR:/Error:/;s/: No such file/: no such file/'
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib $fs/usr
48 cp -a $install/usr/share $fs/usr
49 }