wok view opencpn/receipt @ rev 24476
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 09:29:30 2022 +0000 (2022-02-18) |
parents | affba9aecc73 |
children | 9981cfce1dd8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="opencpn"
4 VERSION="1.3.2"
5 CATEGORY="utilities"
6 SHORT_DESC="A concise Chart/plotter Navigator"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 SUGGESTED="nvidia"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://opencpn.sourceforge.net"
12 WGET_URL="http://nchc.dl.sourceforge.net/sourceforge/$PACKAGE/$TARBALL"
14 DEPENDS="wxWidgets28 mesa libglu-mesa"
15 BUILD_DEPENDS="wxWidgets28-dev mesa-dev libglu-mesa"
16 TAGS="office"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/opencpn/files/opencpn/ 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|.*/opencpn/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
32 cd $src
33 busybox patch -p0 -i $stuff/glib.u
34 ./configure \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS &&
39 make && make DESTDIR=$DESTDIR install
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/share $fs/usr
48 }