blob: 76a74eca6a81e45e97bd4127eacfec561b48397d (
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
33
34
|
# $Id: PKGBUILD 85552 2013-03-03 03:16:05Z cinelli $
# 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.1
pkgdesc='simple C API for reading and writing ESRI Shapefiles'
arch=('i686' 'x86_64' 'mips64el')
url='http://shapelib.maptools.org/'
license=('LGPL' 'MIT')
options=('!libtool')
source=("http://download.osgeo.org/$pkgname/$pkgname-$pkgver.tar.gz"
"LICENSE")
sha256sums=('23d474016158ab5077db2f599527631706ba5c0dc7c4178a6a1d685bb014f68f'
'67e45b04045e27a9d6f64f92b295831b8739b32668ce497d3fa02999e349a789')
build() {
cd "$pkgname-$pkgver"
sed -ri "s:^(CFLAGS\s*=\s*):\1 ${CFLAGS} :" Makefile
make lib
}
package() {
cd "$pkgname-$pkgver"
# The Makefile won't install it correctly, this is easier.
install -D -m644 libshp.a "$pkgdir/usr/lib/libshp.a"
install -D -m644 shapefil.h "$pkgdir/usr/include/libshp/shapefil.h"
install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|