wok annotate opencpn/receipt @ rev 25691

Up lynis (3.1.1), ncurses-examples (20211021)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 16 10:43:04 2024 +0000 (6 weeks ago)
parents 9981cfce1dd8
children
rev   line source
allan316@3209 1 # SliTaz package receipt.
allan316@3209 2
allan316@3209 3 PACKAGE="opencpn"
pascal@4319 4 VERSION="1.3.2"
pankso@3517 5 CATEGORY="utilities"
allan316@3209 6 SHORT_DESC="A concise Chart/plotter Navigator"
allan316@3209 7 MAINTAINER="allan316@gmail.com"
pascal@15000 8 LICENSE="GPL2"
slaxemulator@6970 9 SUGGESTED="nvidia"
allan316@3209 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@24990 11 WEB_SITE="https://www.opencpn.org/"
allan316@3209 12 WGET_URL="http://nchc.dl.sourceforge.net/sourceforge/$PACKAGE/$TARBALL"
pascal@13796 13
al@18521 14 DEPENDS="wxWidgets28 mesa libglu-mesa"
al@18521 15 BUILD_DEPENDS="wxWidgets28-dev mesa-dev libglu-mesa"
jozee@4970 16 TAGS="office"
pankso@3517 17
pascal@24361 18 # What is the latest version available today?
pascal@24361 19 current_version()
pascal@24361 20 {
pascal@24361 21 wget -O - https://sourceforge.net/projects/opencpn/files/opencpn/ 2>/dev/null | \
pascal@25607 22 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24361 23 sed '/scope="row/!d;s|.*/opencpn/||;s|/.*||;q'
pascal@24361 24 }
pascal@24361 25
allan316@3209 26 # Rules to configure and make the package.
allan316@3209 27 compile_rules()
allan316@3209 28 {
pascal@12654 29 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pascal@12654 31
allan316@3209 32 cd $src
slaxemulator@9700 33 busybox patch -p0 -i $stuff/glib.u
allan316@3209 34 ./configure \
allan316@3209 35 --prefix=/usr \
allan316@3209 36 --infodir=/usr/share/info \
allan316@3209 37 --mandir=/usr/share/man \
allan316@3209 38 $CONFIGURE_ARGS &&
pascal@13796 39 make && make DESTDIR=$DESTDIR install
allan316@3209 40 }
allan316@3209 41
allan316@3209 42 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3209 43 genpkg_rules()
allan316@3209 44 {
allan316@3209 45 mkdir -p $fs/usr
pascal@13796 46 cp -a $install/usr/bin $fs/usr
pascal@13796 47 cp -a $install/usr/share $fs/usr
allan316@3209 48 }