wok-6.x annotate pgrouting/receipt @ rev 23676
updated stunnel (5.55 -> 5.56)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 26 10:48:15 2020 +0100 (2020-04-26) |
parents | 4242092353ba |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pascal@16725 | 1 # SliTaz package receipt. |
pascal@16725 | 2 |
pascal@16725 | 3 PACKAGE="pgrouting" |
Hans-G?nter@23424 | 4 VERSION="2.6.3" |
pascal@16725 | 5 CATEGORY="misc" |
Hans-G?nter@21678 | 6 SHORT_DESC="Provide geospatial routing for PostGIS and PostgreSQL." |
pascal@16725 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16725 | 8 LICENSE="GPL2" |
Hans-G?nter@21678 | 9 WEB_SITE="https://pgrouting.org/" |
Hans-G?nter@21678 | 10 |
pascal@16725 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21678 | 12 WGET_URL="https://github.com/pgRouting/$PACKAGE/archive/v$VERSION.tar.gz" |
pascal@16725 | 13 |
Hans-G?nter@21678 | 14 DEPENDS="cgal gcc-lib-base gmp libboost-chrono libboost-date-time \ |
Hans-G?nter@21678 | 15 libboost-system libboost-thread" |
Hans-G?nter@21678 | 16 BUILD_DEPENDS="cgal-dev cmake gmp-dev libboost-dev libboost-graph-dev \ |
Hans-G?nter@21678 | 17 libboost-thread-dev libboost-tr1-dev mpfr-dev postgresql-dev" |
pascal@16725 | 18 |
pascal@16725 | 19 # Rules to configure and make the package. |
pascal@16725 | 20 compile_rules() |
pascal@16725 | 21 { |
Hans-G?nter@21678 | 22 sed -i 's/INT2ARRAYOID/1005/' src/common/get_check_data.c |
Hans-G?nter@21678 | 23 |
Hans-G?nter@23424 | 24 mkdir build && |
Hans-G?nter@23424 | 25 cd build && |
Hans-G?nter@21678 | 26 cmake .. && |
Hans-G?nter@21678 | 27 make && |
pascal@16725 | 28 make install |
pascal@16725 | 29 } |
pascal@16725 | 30 |
pascal@16725 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16725 | 32 genpkg_rules() |
pascal@16725 | 33 { |
pascal@16725 | 34 mkdir -p $fs/usr |
Hans-G?nter@23424 | 35 cp -a $install/usr/* $fs/usr |
pascal@20237 | 36 sed -i 's|\$libdir|/usr/lib/postgresql|' \ |
pascal@20237 | 37 $fs/usr/share/postgresql/extension/*.sql |
pascal@16725 | 38 } |
pascal@20237 | 39 |
pascal@20237 | 40 post_install_example() |
pascal@20237 | 41 { |
pascal@20237 | 42 database=test |
pascal@20237 | 43 chroot "$1/" createdb -U postgres -h localhost $database |
pascal@20237 | 44 chroot "$1/" psql -U postgres -U postgres $database <<EOT |
pascal@20237 | 45 create extension pgrouting; |
pascal@20237 | 46 \q |
pascal@20237 | 47 EOT |
pascal@20237 | 48 sed 1d $1/usr/share/postgresql/extension/pgrouting--$VERSION.sql | |
pascal@20237 | 49 chroot "$1/" psql -U postgres $database |
pascal@20237 | 50 } |