summaryrefslogtreecommitdiff
path: root/community/gpsmanshp
diff options
context:
space:
mode:
Diffstat (limited to 'community/gpsmanshp')
-rw-r--r--community/gpsmanshp/PKGBUILD18
1 files changed, 8 insertions, 10 deletions
diff --git a/community/gpsmanshp/PKGBUILD b/community/gpsmanshp/PKGBUILD
index a34ddd3a9..4b5e2a62f 100644
--- a/community/gpsmanshp/PKGBUILD
+++ b/community/gpsmanshp/PKGBUILD
@@ -1,6 +1,5 @@
-# $Id: PKGBUILD 81604 2012-12-25 00:34:09Z foutrelis $
-# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
-# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
+# $Id: PKGBUILD 85511 2013-03-02 09:50:49Z cinelli $
+# Maintainer: Federico Cinelli <cinelli@aur.archlinux.org>
pkgname=gpsmanshp
pkgver=1.2.1
@@ -10,28 +9,27 @@ 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")
+source=("http://sourceforge.net/projects/$pkgname/files/distr/${pkgname}_$pkgver.tgz")
md5sums=('c2876d7f67c8215b46b336b5b859d49f')
build() {
- cd "${pkgname}_${pkgver}"
+ cd "${pkgname}_$pkgver"
mv Makefile8.5 Makefile
sed -i -e "s:shapefil.h:libshp/shapefil.h:g" gpsmanshp.c
- install -d ${pkgdir}/usr/lib/
+ install -d "$srcdir/${pkgname}_$pkgver/usr/lib/"
- # set install path
- sed -i -e "s|/usr/lib/tcl\$(TCLVERSION)|${pkgdir}/usr/lib/gpsmanshp|g" Makefile
+ 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}"
+ cd "${pkgname}_$pkgver"
make install
}