wok annotate postgis/receipt @ rev 20696

updated aaphoto (0.41 -> 0.45)
author Hans-G?nter Theisgen
date Tue Feb 05 15:53:46 2019 +0100 (2019-02-05)
parents e2ec3520cf88
children 432dd31a79d5
rev   line source
erjo@11628 1 # SliTaz package receipt.
erjo@11628 2
erjo@11628 3 PACKAGE="postgis"
pascal@18578 4 VERSION="2.2.0"
erjo@11628 5 CATEGORY="misc"
erjo@11628 6 SHORT_DESC="Support for geographic objects to PostgreSQL"
erjo@11628 7 MAINTAINER="erjo@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
erjo@11628 9 WEB_SITE="http://postgis.refractions.net/"
erjo@11628 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18578 11 WGET_URL="http://download.osgeo.org/postgis/source/$TARBALL"
erjo@11628 12
pascal@20236 13 DEPENDS="geos proj libpostgresqlclient libxml2 libgdal libpng"
pascal@18578 14 BUILD_DEPENDS="pkg-config postgresql-dev geos-dev proj-dev libxml2-dev \
pascal@18578 15 gtk+-dev gdal-dev jasper-dev curl-dev libpostgresqlclient tiff"
erjo@11628 16
erjo@11628 17 # Rules to configure and make the package.
erjo@11628 18 compile_rules()
erjo@11628 19 {
erjo@11628 20 ./configure --with-gui $CONFIGURE_ARGS \
pascal@15642 21 && make -j 1 && make install
erjo@11628 22 }
erjo@11628 23
erjo@11628 24 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@11628 25 genpkg_rules()
erjo@11628 26 {
erjo@11628 27 cp -a $install/* $fs
erjo@11628 28 rm -f $fs/usr/bin/shp2pgsql-gui
erjo@11628 29 }
pascal@20237 30
pascal@20237 31 post_install_example()
pascal@20237 32 {
pascal@20237 33 database=test
pascal@20237 34 chroot "$1/" createdb -U postgres -h localhost $database
pascal@20237 35 chroot "$1/" psql -U postgres $database <<EOT
pascal@20237 36 create extension postgis;
pascal@20237 37 \q
pascal@20237 38 EOT
pascal@20237 39 }