[arch-commits] Commit in gpsmanshp/trunk (PKGBUILD)
Eric Bélanger
eric at archlinux.org
Tue Aug 12 23:39:22 UTC 2014
Date: Wednesday, August 13, 2014 @ 01:39:22
Author: eric
Revision: 117325
upgpkg: gpsmanshp 1.2.3-1
Upstream update, Clean up PKGBUILD
Modified:
gpsmanshp/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-08-12 22:13:56 UTC (rev 117324)
+++ PKGBUILD 2014-08-12 23:39:22 UTC (rev 117325)
@@ -2,8 +2,8 @@
# Maintainer: Federico Cinelli <cinelli at aur.archlinux.org>
pkgname=gpsmanshp
-pkgver=1.2.1
-pkgrel=3
+pkgver=1.2.3
+pkgrel=1
pkgdesc="A Tcl package to read and write shapefiles"
arch=('i686' 'x86_64')
url="http://gpsmanshp.sourceforge.net/"
@@ -10,26 +10,20 @@
license=('GPL')
depends=('glibc' 'shapelib' 'tcl')
source=("http://sourceforge.net/projects/$pkgname/files/distr/${pkgname}_$pkgver.tgz")
-md5sums=('c2876d7f67c8215b46b336b5b859d49f')
+md5sums=('ae25451d75c6c2b281074e13c1da29cd')
+prepare() {
+ cd "${pkgname}_$pkgver"
+ sed -i "s|8.4|8.6|g" Makefile8.5
+}
+
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
+ make -f Makefile8.5 TCLVERSION=8.6
}
package() {
cd "${pkgname}_$pkgver"
-
- make install
+ install -d "$pkgdir"/usr/lib/gpsmanshp
+ make -f Makefile8.5 TCLVERSION=8.6 INSTALLDIR="$pkgdir"/usr/lib/gpsmanshp install
}
More information about the arch-commits
mailing list