wok view pgrouting/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (10 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pgrouting"
4 VERSION="2.6.3"
5 CATEGORY="misc"
6 SHORT_DESC="Provide geospatial routing for PostGIS and PostgreSQL."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://pgrouting.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/pgRouting/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="cgal gcc-lib-base gmp libboost-chrono libboost-date-time \
15 libboost-system libboost-thread"
16 BUILD_DEPENDS="cgal-dev cmake gmp-dev libboost-dev libboost-graph-dev \
17 libboost-thread-dev libboost-tr1-dev mpfr-dev postgresql-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's/INT2ARRAYOID/1005/' src/common/get_check_data.c
31 mkdir build &&
32 cd build &&
33 cmake .. &&
34 make &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $install/usr/* $fs/usr
43 sed -i 's|\$libdir|/usr/lib/postgresql|' \
44 $fs/usr/share/postgresql/extension/*.sql
45 }
47 post_install_example()
48 {
49 database=test
50 chroot "$1/" createdb -U postgres -h localhost $database
51 chroot "$1/" psql -U postgres -U postgres $database <<EOT
52 create extension pgrouting;
53 \q
54 EOT
55 sed 1d $1/usr/share/postgresql/extension/pgrouting--$VERSION.sql |
56 chroot "$1/" psql -U postgres $database
57 }