1 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
6 pkgdesc="Tcl/Tk extensions to read, manipulate, and display geographic data."
8 url="http://www.tkgeomap.org/"
9 license=('GPL' 'custom')
10 depends=('tcl' 'glibc')
11 source=(http://downloads.sourceforge.net/sourceforge/tkgeomap/$pkgname-$pkgver.tar.gz \
13 md5sums=('e26e5596711c4acda4cf1500e20d037e'
14 'e9f0322a79e3e648307b9037206b4f8d')
17 cd $startdir/src/$pkgname-$pkgver/unix
18 patch -Np2 < $startdir/src/makefile.patch || return 1
19 ./configure --prefix=/usr --exec-prefix=/usr --mandir=/usr/share
21 make VERSBOSE=1 || return 1
22 make DESTDIR=$startdir/pkg install || return 1
25 cd $startdir/src/$pkgname-$pkgver
26 install -D -m644 license.terms $startdir/pkg/usr/share/licenses/$pkgname/license.terms
27 install -D -m644 COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING
28 install -D -m644 OpenSoftwareLicense \
29 $startdir/pkg/usr/share/licenses/$pkgname/OpenSoftwareLicense
31 # add a version work around simlink
32 ln -sf /usr/include/tclgeomap$pkgver $startdir/pkg/usr/include/tclgeomap