summaryrefslogtreecommitdiff
path: root/community/shapelib/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/shapelib/PKGBUILD')
-rw-r--r--community/shapelib/PKGBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/shapelib/PKGBUILD b/community/shapelib/PKGBUILD
index 75f0ecee7..d08ab923b 100644
--- a/community/shapelib/PKGBUILD
+++ b/community/shapelib/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=shapelib
pkgver=1.3.0
-pkgrel=1
+pkgrel=1.1
pkgdesc='simple C API for reading and writing ESRI Shapefiles'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://shapelib.maptools.org/'
license=('LGPL' 'MIT')
options=('!libtool')
@@ -16,7 +16,9 @@ sha256sums=('23d474016158ab5077db2f599527631706ba5c0dc7c4178a6a1d685bb014f68f'
'67e45b04045e27a9d6f64f92b295831b8739b32668ce497d3fa02999e349a789')
build() {
- cd ${pkgname}-${pkgver}
+ cd "$pkgname-$pkgver"
+
+ sed -ri "s:^(CFLAGS\s*=\s*):\1 ${CFLAGS} :" Makefile
make lib
}
@@ -24,7 +26,8 @@ build() {
package() {
cd ${pkgname}-${pkgver}
- install -d ${pkgdir}/usr/{lib,include}
- make PREFIX=${pkgdir}/usr 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"
}