summaryrefslogtreecommitdiff
path: root/community/gen2shp/PKGBUILD
blob: e6796db561af2a41960e78debf847e1a6557745f (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
# $Id: PKGBUILD 91621 2013-05-25 12:05:10Z bpiotrowski $
# Maintainer:  Federico Cinelli <cinelli@aur.archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org

pkgname=gen2shp
pkgver=0.3.1
pkgrel=8
pkgdesc='Converts ArcInfo generate format to shapefile format'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.intevation.de/~jan/gen2shp/'
license=('GPL')
depends=('glibc' 'shapelib')
source=("http://web.archive.org/web/20110716144136/http://intevation.de/~jan/gen2shp/$pkgname-$pkgver.tar.gz"
	"link.patch")
md5sums=('1cf9f1c2097825ef96290f7e9a7eb195'
         'cc9ad41a7577c0cbfebb637d3a83c2aa')

build() {
  cd "$pkgname-$pkgver"

  # fix conflicting function names
  sed -i 's/getline/get_line/' gen2shp.c utils.c utils.h
  # Fix linking.
  patch -p1 -i "$srcdir/link.patch"

  make
}

package() {
  install -D "$pkgname-$pkgver/gen2shp" "$pkgdir/usr/bin/gens2shp"
}