diff options
Diffstat (limited to 'community/shapelib/PKGBUILD')
-rw-r--r-- | community/shapelib/PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/community/shapelib/PKGBUILD b/community/shapelib/PKGBUILD new file mode 100644 index 000000000..7021f6efa --- /dev/null +++ b/community/shapelib/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 21347 2010-07-16 01:42:18Z tdziedzic $ +#Contributor: Bob Finch <w9ya@arrl.net> + +pkgname=shapelib +pkgver=1.2.10 +pkgrel=4 +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://dl.maptools.org/dl/${pkgname}/${pkgname}-${pkgver}.tar.gz" + 'LICENSE') +md5sums=('4d96bd926167193d27bf14d56e2d484e' + '431dfe7afb1d2c082682ecfcc9ee7a34') + +build() { + cd ${pkgname}-${pkgver} + + sed -i -e s:'-O2':"${CFLAGS}": Makefile + make lib + + 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 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} |