updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / tclgeomap / PKGBUILD
blobc03b5e7db73b09a83341485daac01e24494c3851
1 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
3 pkgname=tclgeomap
4 pkgver=2.11.3
5 pkgrel=3
6 pkgdesc="Tcl/Tk extensions to read, manipulate, and display geographic data."
7 arch=('i686' 'x86_64')
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 \
12         makefile.patch)
13 md5sums=('e26e5596711c4acda4cf1500e20d037e'
14          'e9f0322a79e3e648307b9037206b4f8d')
16 build() {
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
24   # install license
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
34 # vim:syntax=sh