wok annotate pgrouting/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents 7a3de9a33cba
children 0262035dc1e7
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@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
pascal@16725 25 # Rules to configure and make the package.
pascal@16725 26 compile_rules()
pascal@16725 27 {
Hans-G?nter@21678 28 sed -i 's/INT2ARRAYOID/1005/' src/common/get_check_data.c
Hans-G?nter@21678 29
Hans-G?nter@23424 30 mkdir build &&
Hans-G?nter@23424 31 cd build &&
Hans-G?nter@21678 32 cmake .. &&
Hans-G?nter@21678 33 make &&
pascal@16725 34 make install
pascal@16725 35 }
pascal@16725 36
pascal@16725 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16725 38 genpkg_rules()
pascal@16725 39 {
pascal@16725 40 mkdir -p $fs/usr
Hans-G?nter@23424 41 cp -a $install/usr/* $fs/usr
pascal@20237 42 sed -i 's|\$libdir|/usr/lib/postgresql|' \
pascal@20237 43 $fs/usr/share/postgresql/extension/*.sql
pascal@16725 44 }
pascal@20237 45
pascal@20237 46 post_install_example()
pascal@20237 47 {
pascal@20237 48 database=test
pascal@20237 49 chroot "$1/" createdb -U postgres -h localhost $database
pascal@20237 50 chroot "$1/" psql -U postgres -U postgres $database <<EOT
pascal@20237 51 create extension pgrouting;
pascal@20237 52 \q
pascal@20237 53 EOT
pascal@20237 54 sed 1d $1/usr/share/postgresql/extension/pgrouting--$VERSION.sql |
pascal@20237 55 chroot "$1/" psql -U postgres $database
pascal@20237 56 }