[arch-commits] Commit in gpsmanshp/trunk (PKGBUILD)
Federico Cinelli
cinelli at nymeria.archlinux.org
Sat Mar 2 09:49:09 UTC 2013
Date: Saturday, March 2, 2013 @ 10:49:09
Author: cinelli
Revision: 85510
upgpkg: gpsmanshp 1.2.1-2 removed $pkgdir from build()
Modified:
gpsmanshp/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-03-02 08:05:25 UTC (rev 85509)
+++ PKGBUILD 2013-03-02 09:49:09 UTC (rev 85510)
@@ -1,6 +1,5 @@
# $Id$
-# Maintainer: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
-# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
+# Maintainer: Federico Cinelli <cinelli at aur.archlinux.org>
pkgname=gpsmanshp
pkgver=1.2.1
@@ -10,28 +9,27 @@
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
}
More information about the arch-commits
mailing list