diff options
Diffstat (limited to 'community/gen2shp')
-rw-r--r-- | community/gen2shp/PKGBUILD | 10 | ||||
-rw-r--r-- | community/gen2shp/link.patch | 11 |
2 files changed, 18 insertions, 3 deletions
diff --git a/community/gen2shp/PKGBUILD b/community/gen2shp/PKGBUILD index f1366188c..d0379a3ef 100644 --- a/community/gen2shp/PKGBUILD +++ b/community/gen2shp/PKGBUILD @@ -6,18 +6,22 @@ pkgname=gen2shp pkgver=0.3.1 pkgrel=7 pkgdesc='Converts ArcInfo generate format to shapefile format' -arch=('i686' 'x86_64') +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") -md5sums=('1cf9f1c2097825ef96290f7e9a7eb195') +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 } diff --git a/community/gen2shp/link.patch b/community/gen2shp/link.patch new file mode 100644 index 000000000..71e40de1b --- /dev/null +++ b/community/gen2shp/link.patch @@ -0,0 +1,11 @@ +--- gen2shp-0.3.1/Makefile.orig 2013-03-18 12:20:49.925820131 +0100 ++++ gen2shp-0.3.1/Makefile 2013-03-18 12:20:57.757895932 +0100 +@@ -10,7 +10,7 @@ + $(CC) -c utils.c + + gen2shp: gen2shp.c utils.o +- $(CC) $(CFLAGS) -o $@ -lshp gen2shp.c utils.o ++ $(CC) $(CFLAGS) -o $@ gen2shp.c utils.o -lshp + + test: gen2shp + rm -f pnttest.dbf pnttest.shp pnttest.shx |