wok view pgrouting/receipt @ rev 22045

updated tmux-mem-cpu-load (2.2.1 -> 3.4.0)
author Hans-G?nter Theisgen
date Tue Oct 22 14:09:23 2019 +0100 (2019-10-22)
parents 8144275286f2
children 7a3de9a33cba
line source
1 # SliTaz package receipt.
3 PACKAGE="pgrouting"
4 VERSION="2.6.2"
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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's/INT2ARRAYOID/1005/' src/common/get_check_data.c
24 mkdir build
25 cd build
26 cmake .. &&
27 make &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/usr/* $fs/usr
36 sed -i 's|\$libdir|/usr/lib/postgresql|' \
37 $fs/usr/share/postgresql/extension/*.sql
38 }
40 post_install_example()
41 {
42 database=test
43 chroot "$1/" createdb -U postgres -h localhost $database
44 chroot "$1/" psql -U postgres -U postgres $database <<EOT
45 create extension pgrouting;
46 \q
47 EOT
48 sed 1d $1/usr/share/postgresql/extension/pgrouting--$VERSION.sql |
49 chroot "$1/" psql -U postgres $database
50 }