summaryrefslogtreecommitdiff
path: root/community/gpsmanshp
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-03-19 00:04:27 -0700
committerroot <root@rshg054.dnsready.net>2013-03-19 00:04:27 -0700
commitb54c21859be3590a319ceade1f58d0b89ac5ef32 (patch)
tree1f4a8c6408144ac159505c48e66641671e87ff54 /community/gpsmanshp
parente81bd948a32f8b411197818651f517ddf431ab0a (diff)
Tue Mar 19 00:04:27 PDT 2013
Diffstat (limited to 'community/gpsmanshp')
-rw-r--r--community/gpsmanshp/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/gpsmanshp/PKGBUILD b/community/gpsmanshp/PKGBUILD
new file mode 100644
index 000000000..89cfa99af
--- /dev/null
+++ b/community/gpsmanshp/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 86486 2013-03-18 11:13:27Z andrea $
+# Maintainer: Federico Cinelli <cinelli@aur.archlinux.org>
+
+pkgname=gpsmanshp
+pkgver=1.2.1
+pkgrel=3
+pkgdesc="A Tcl package to read and write shapefiles"
+arch=('i686' 'x86_64')
+url="http://gpsmanshp.sourceforge.net/"
+license=('GPL')
+depends=('glibc' 'shapelib' 'tcl')
+source=("http://sourceforge.net/projects/$pkgname/files/distr/${pkgname}_$pkgver.tgz")
+md5sums=('c2876d7f67c8215b46b336b5b859d49f')
+
+build() {
+ cd "${pkgname}_$pkgver"
+
+ mv Makefile8.5 Makefile
+ sed -i -e "s:shapefil.h:libshp/shapefil.h:g" gpsmanshp.c
+
+ install -d "$srcdir/${pkgname}_$pkgver/usr/lib/"
+
+ sed -i -e "s|/usr/lib/tcl\$(TCLVERSION)|$srcdir/${pkgname}_$pkgver/usr/lib/gpsmanshp|g" Makefile
+ sed -i -e "s|tclsh\$(TCLVERSION)|tclsh|g" Makefile
+ sed -i "s|package-8.3.tcl|/usr/lib/tcl8.6/package.tcl|g" Makefile
+ sed -i "s|8.4|8.6|g" Makefile
+
+ make
+}
+
+package() {
+ cd "${pkgname}_$pkgver"
+
+ make install
+}