summaryrefslogtreecommitdiff
path: root/community/gpsmanshp/PKGBUILD
blob: 66ee0e9d68ca93ee557d57e0a71aa2bdf2b7be34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 21514 2010-07-16 14:22:13Z tdziedzic $
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org

pkgname=gpsmanshp
pkgver=1.2
pkgrel=4
pkgdesc='A Tcl package to read and write shapefiles'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.ncc.up.pt/gpsmanshp'
license=('GPL')
depends=('bash' 'tcl' 'shapelib')
source=("http://www.ncc.up.pt/${pkgname}/${pkgname}_${pkgver}.tgz")
md5sums=('b32e16afe3e306cf991ea38713fd0c9e')

build() {
  cd ${pkgname}_${pkgver}

  mv Makefile8.4.4 Makefile

  mkdir -p ${pkgdir}/usr/lib/

  # set install path
  sed -i -e "s|/usr/lib/tcl\$(TCLVERSION)|${pkgdir}/usr/lib/gpsmanshp|g" Makefile
  sed -i -e "s|tclsh\$(TCLVERSION)|tclsh|g" Makefile
  sed -i "s|package-8.3.tcl|/usr/lib/tcl8.5/package.tcl|g" Makefile
  sed -i "s|8.4|8.5|g" Makefile 

  make
}

package() {
  cd ${pkgname}_${pkgver}

  make install
}