PKGBUILDs/community/gpsbabel/PKGBUILD
2009-10-09 21:15:33 -05:00

33 lines
1 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=gpsbabel
pkgver=1.3.6
pkgrel=1
pkgdesc="Reads, writes, and manipulates GPS waypoints in a variety of formats"
arch=('i686' 'x86_64')
url="http://www.gpsbabel.org"
license=('GPL')
depends=('libusb' 'expat')
source=(http://www.gpsbabel.org/plan9.php?dl=gpsbabel-$pkgver.tar.gz \
exeext.patch)
md5sums=('1571b31f8f06f722995449dbff01ca49'
'c1fa9755523f6ffdf55cb2d573ea5b09')
build() {
cd $startdir/src/gpsbabel-$pkgver
mkdir -p $startdir/pkg/usr/bin
./configure --prefix=/usr
patch -Np0 -i ../exeext.patch
#sed -i 's|/usr/local|/usr|g' Makefile
#sed -i 's|$(INSTALL_TARGETDIR)/bin|$(DESTDIR)$(INSTALL_TARGETDIR)/bin|g' Makefile
make || return 1
make DESTDIR=$startdir/pkg install
# Header install
mkdir -p $startdir/pkg/usr/include/gpsbabel
cp {defs.h,queue.h,gbtypes.h,filterdefs.h,cet.h,cet_util.h,garmin_tables.h} \
$startdir/pkg/usr/include/gpsbabel
}