wok-6.x view pgrouting/receipt @ rev 24798

updated libhx and libhx-dev (3.24 -> 4.3)
author Hans-G?nter Theisgen
date Mon Mar 21 17:23:16 2022 +0100 (2022-03-21)
parents 7a3de9a33cba
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 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's/INT2ARRAYOID/1005/' src/common/get_check_data.c
30 mkdir build &&
31 cd build &&
32 cmake .. &&
33 make &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/* $fs/usr
42 sed -i 's|\$libdir|/usr/lib/postgresql|' \
43 $fs/usr/share/postgresql/extension/*.sql
44 }
46 post_install_example()
47 {
48 database=test
49 chroot "$1/" createdb -U postgres -h localhost $database
50 chroot "$1/" psql -U postgres -U postgres $database <<EOT
51 create extension pgrouting;
52 \q
53 EOT
54 sed 1d $1/usr/share/postgresql/extension/pgrouting--$VERSION.sql |
55 chroot "$1/" psql -U postgres $database
56 }