PKGBUILDs/community/tclgeomap/PKGBUILD
2009-10-09 21:15:33 -05:00

36 lines
1.3 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
pkgname=tclgeomap
pkgver=2.11.3
pkgrel=2
pkgdesc="A set of extensions to the Tcl/Tk scripting language. It adds commands \
that read, manipulate, and display geographic data."
arch=('i686' 'x86_64')
url="http://www.tkgeomap.org/"
license=('GPL' 'custom')
depends=('tcl' 'glibc')
source=(http://downloads.sourceforge.net/sourceforge/tkgeomap/$pkgname-$pkgver.tar.gz \
makefile.patch)
md5sums=('e26e5596711c4acda4cf1500e20d037e'
'e9f0322a79e3e648307b9037206b4f8d')
build() {
cd $startdir/src/$pkgname-$pkgver/unix
patch -Np2 < $startdir/src/makefile.patch || return 1
./configure --prefix=/usr --exec-prefix=/usr
make VERSBOSE=1 || return 1
make DESTDIR=$startdir/pkg install || return 1
# install license
cd $startdir/src/$pkgname-$pkgver
install -D -m644 license.terms $startdir/pkg/usr/share/licenses/$pkgname/license.terms
install -D -m644 COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING
install -D -m644 OpenSoftwareLicense \
$startdir/pkg/usr/share/licenses/$pkgname/OpenSoftwareLicense
# add a version work around simlink
ln -sf /usr/include/tclgeomap$pkgver $startdir/pkg/usr/include/tclgeomap
}
# vim:syntax=sh