summaryrefslogtreecommitdiff
path: root/community/shapelib/PKGBUILD
blob: c421ae23ac8317567e61a5732013dd7cc9da58b5 (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
28
29
30
31
32
# $Id: PKGBUILD 67779 2012-03-14 11:48:39Z giovanni $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Bob Finch <w9ya@arrl.net>

pkgname=shapelib
pkgver=1.2.10
pkgrel=5
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
}

package() {
  cd ${pkgname}-${pkgver}

  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 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}