# $Id: PKGBUILD 55779 2011-09-20 06:52:40Z andrea $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org

pkgname=shp2svg
pkgver=0.5.1
pkgrel=3
pkgdesc="Takes the text input from shp2pgsql and converts it to SVG files"
arch=('any')
url="http://www.carto.net/papers/svg/utils/shp2svg/"
license=('LGPL')
depends=('postgis' 'perl-math-round')
source=(http://www.carto.net/papers/svg/utils/shp2svg/ogis2svg.pl)
md5sums=('040103d8c83ee0d7095cad7d703d4e80')

package() {
  install -d "${pkgdir}"/usr/bin
  install -m755 "${srcdir}"/ogis2svg.pl "${pkgdir}"/usr/bin/ogis2svg.pl
  # add a symlink because the name of the script is a little confusing.
  ln -sf /usr/bin/ogis2svg.pl "${pkgdir}"/usr/bin/shp2svg
}
