Date: Monday, March 18, 2013 @ 12:13:27
  Author: andrea
Revision: 86486

archrelease: copy trunk to community-x86_64

Added:
  gpsmanshp/repos/community-x86_64/PKGBUILD
    (from rev 86485, gpsmanshp/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: gpsmanshp/repos/community-x86_64/PKGBUILD (from rev 86485, 
gpsmanshp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2013-03-18 11:13:27 UTC (rev 86486)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer:  Federico Cinelli   <cine...@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
+}

Reply via email to