summaryrefslogtreecommitdiff
path: root/community/shapelib/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-05-07 22:31:25 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-05-07 22:31:25 -0300
commit9f7fb9c12e84f20cd108b933f1a51e216f76cd98 (patch)
tree06520d9024b40745b94f02d0d3419386e6496863 /community/shapelib/PKGBUILD
parent6cc893589a6bd208f2b7711f985e17df7a6df816 (diff)
parenta86ff663185661ee304bb1f6d00d982102dd706d (diff)
Merge branch 'master' of gparabola:abslibre-mips64el
Diffstat (limited to 'community/shapelib/PKGBUILD')
-rw-r--r--community/shapelib/PKGBUILD32
1 files changed, 17 insertions, 15 deletions
diff --git a/community/shapelib/PKGBUILD b/community/shapelib/PKGBUILD
index 849cb918d..76a74eca6 100644
--- a/community/shapelib/PKGBUILD
+++ b/community/shapelib/PKGBUILD
@@ -1,32 +1,34 @@
-# $Id: PKGBUILD 67779 2012-03-14 11:48:39Z giovanni $
-# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# $Id: PKGBUILD 85552 2013-03-03 03:16:05Z cinelli $
+# Maintainer: Federico Cinelli <cinelli@aur.archlinux.org>
+# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Bob Finch <w9ya@arrl.net>
pkgname=shapelib
-pkgver=1.2.10
-pkgrel=5
+pkgver=1.3.0
+pkgrel=1.1
pkgdesc='simple C API for reading and writing ESRI Shapefiles'
arch=('i686' 'x86_64' 'mips64el')
url='http://shapelib.maptools.org/'
license=('LGPL' 'MIT')
options=('!libtool')
-source=("http://dl.maptools.org/dl/${pkgname}/${pkgname}-${pkgver}.tar.gz"
- 'LICENSE')
-md5sums=('4d96bd926167193d27bf14d56e2d484e'
- '431dfe7afb1d2c082682ecfcc9ee7a34')
+source=("http://download.osgeo.org/$pkgname/$pkgname-$pkgver.tar.gz"
+ "LICENSE")
+sha256sums=('23d474016158ab5077db2f599527631706ba5c0dc7c4178a6a1d685bb014f68f'
+ '67e45b04045e27a9d6f64f92b295831b8739b32668ce497d3fa02999e349a789')
build() {
- cd ${pkgname}-${pkgver}
+ cd "$pkgname-$pkgver"
+
+ sed -ri "s:^(CFLAGS\s*=\s*):\1 ${CFLAGS} :" Makefile
- sed -i -e s:'-O2':"${CFLAGS}": Makefile
make lib
}
package() {
- cd ${pkgname}-${pkgver}
+ cd "$pkgname-$pkgver"
- sed -i -e s:/usr/local:${pkgdir}/usr: Makefile
- #sed -i -e s:/usr/bin/install:/bin/install: Makefile
- make lib_install
- install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ # The Makefile won't install it correctly, this is easier.
+ install -D -m644 libshp.a "$pkgdir/usr/lib/libshp.a"
+ install -D -m644 shapefil.h "$pkgdir/usr/include/libshp/shapefil.h"
+ install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}