wok view navit/receipt @ rev 24876

magicpoint: ar syntax adaptation)
author Hans-G?nter Theisgen
date Thu Mar 31 11:00:43 2022 +0100 (2022-03-31)
parents 6e8b1bcb30e2
children dcb071a5e9e6
line source
1 # SliTaz package receipt.
3 PACKAGE="navit"
4 VERSION="0.2.0"
5 CATEGORY="utilities"
6 SHORT_DESC="Navit is a car navigation system with routing engine."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.navit-project.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 EXTRA_SOURCE_FILES="osm_bbox_11.3,47.9,11.7,48.2.osm.bz2"
14 DEPENDS="glib glibc-base libpostgresqlclient zlib"
15 BUILD_DEPENDS="mesa-dev freeglut-dev quesoglc-dev freeimage-dev \
16 imagemagick-dev xorg-libXpm-dev xorg-libXmu-dev gtk+-dev libsdl-dev \
17 libsdl-image-dev freetype-dev fribidi-dev imlib2-dev postgresql-dev \
18 xorg-libXi-dev openssl-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/navit/files/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/files/v\.*||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] &&
31 cp $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES navit/maps/
32 ./configure $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
36 cp navit/maps/$EXTRA_SOURCE_FILES $SOURCES_REPOSITORY/
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cp -a $install/* $fs
43 rm -f $fs/usr/lib/*.la
44 rm -rf $fs/usr/share/man
45 }