summaryrefslogtreecommitdiff
path: root/community/shapelib/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-03-18 12:24:09 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-03-18 12:24:09 +0100
commitd697117f3e2c400f8a7cae7bbbbf27166edc277a (patch)
tree1c8abf51bb3cdc03b79f7f0808426c9365163aa3 /community/shapelib/PKGBUILD
parentb97f2d43a72aa2e596e6f2c8ba5c998da44a9787 (diff)
Fix shapelib and gen2shp.
Diffstat (limited to 'community/shapelib/PKGBUILD')
-rw-r--r--community/shapelib/PKGBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/community/shapelib/PKGBUILD b/community/shapelib/PKGBUILD
index 2ea1983d6..76a74eca6 100644
--- a/community/shapelib/PKGBUILD
+++ b/community/shapelib/PKGBUILD
@@ -5,7 +5,7 @@
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' 'mips64el')
url='http://shapelib.maptools.org/'
@@ -18,6 +18,8 @@ sha256sums=('23d474016158ab5077db2f599527631706ba5c0dc7c4178a6a1d685bb014f68f'
build() {
cd "$pkgname-$pkgver"
+
+ sed -ri "s:^(CFLAGS\s*=\s*):\1 ${CFLAGS} :" Makefile
make lib
}
@@ -25,7 +27,8 @@ build() {
package() {
cd "$pkgname-$pkgver"
- install -d "$pkgdir/usr/lib" "$pkgdir/usr/include"
- make PREFIX="$pkgdir/usr lib_install"
+ # 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"
}