summaryrefslogtreecommitdiff
path: root/community/shapelib/PKGBUILD
blob: 7021f6efa0549074e8985860093c6609a7054705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
}