pkgname=shapelib pkgver=1.6.1 pkgrel=1 pkgdesc='Simple C API for reading and writing ESRI Shapefiles' arch=('x86_64') url='http://shapelib.maptools.org/' license=('LGPL' 'MIT') depends=('gcc-libs') options=('!libtool') source=("https://download.osgeo.org/shapelib/${pkgname}-${pkgver}.tar.gz" 'LICENSE') md5sums=('39065725a4b9211e29c9e8b0dfef6deb' 'ab2b25e10a8b30c88e4c0fd4862d0a5b') build() { cd ${pkgname}-${pkgver} #sed -i -e s:'-fPIC':"${CFLAGS} -fPIC": Makefile ./configure --prefix=/usr make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install #chmod 644 ${pkgdir}/usr/include/shapefil.h install -D -m644 LICENSE-LGPL ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }