summaryrefslogtreecommitdiff
path: root/community/shapelib/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-06-24 00:07:29 -0700
committerroot <root@rshg054.dnsready.net>2013-06-24 00:07:29 -0700
commitfad7e04efd4045c478db2e849bb8d457b82cdada (patch)
treee34c42c779dd005132e4da1b2bc6c530a25e8088 /community/shapelib/PKGBUILD
parent8d87c082149a6574a1d17d3c28ab2cb65a1e1d96 (diff)
Mon Jun 24 00:07:29 PDT 2013
Diffstat (limited to 'community/shapelib/PKGBUILD')
-rw-r--r--community/shapelib/PKGBUILD30
1 files changed, 20 insertions, 10 deletions
diff --git a/community/shapelib/PKGBUILD b/community/shapelib/PKGBUILD
index 75f0ecee7..d3b997720 100644
--- a/community/shapelib/PKGBUILD
+++ b/community/shapelib/PKGBUILD
@@ -1,30 +1,40 @@
-# $Id: PKGBUILD 90199 2013-05-08 13:40:53Z bpiotrowski $
-# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# $Id: PKGBUILD 93041 2013-06-23 03:50:51Z foutrelis $
+# Maintainer: Federico Cinelli <cinelli@aur.archlinux.org>
+# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Bob Finch <w9ya@arrl.net>
pkgname=shapelib
pkgver=1.3.0
-pkgrel=1
+pkgrel=2
pkgdesc='simple C API for reading and writing ESRI Shapefiles'
arch=('i686' 'x86_64')
url='http://shapelib.maptools.org/'
license=('LGPL' 'MIT')
options=('!libtool')
-source=(http://download.osgeo.org/$pkgname/$pkgname-$pkgver.tar.gz
- LICENSE)
+source=("http://download.osgeo.org/$pkgname/$pkgname-$pkgver.tar.gz"
+ "LICENSE")
sha256sums=('23d474016158ab5077db2f599527631706ba5c0dc7c4178a6a1d685bb014f68f'
'67e45b04045e27a9d6f64f92b295831b8739b32668ce497d3fa02999e349a789')
build() {
- cd ${pkgname}-${pkgver}
+ cd "$pkgname-$pkgver"
+ sed -i -e s:'-fPIC':"${CFLAGS} -fPIC": Makefile
make lib
}
package() {
- cd ${pkgname}-${pkgver}
+ 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
+ install -dm755 "$pkgdir"/usr/{lib,include}
+
+ # Fix the broken makefile
+ sed -i -e s:/usr/local:${pkgdir}/usr: Makefile
+ sed -i -e s:/usr/bin/install:/bin/install: Makefile
+ make lib_install
+
+ # Fix world readable bit not set
+ chmod 644 $pkgdir/usr/include/shapefil.h
+
+ install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}