diff options
Diffstat (limited to 'community/garmindev/PKGBUILD')
-rw-r--r-- | community/garmindev/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/garmindev/PKGBUILD b/community/garmindev/PKGBUILD new file mode 100644 index 000000000..5cae2fff7 --- /dev/null +++ b/community/garmindev/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 39106 2011-02-06 22:07:54Z jlichtblau $ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Matthias Maennich <arch@maennich.net> + +pkgname=garmindev +pkgver=0.3.4 +pkgrel=4 +pkgdesc="Garmin Device Drivers for QlandkarteGT" +arch=('i686' 'x86_64') +url="http://www.qlandkarte.org/" +license=('GPL') +depends=('libusb') +makedepends=('cmake') +changelog=$pkgname.changelog +install=$pkgname.install +source=(http://downloads.sourceforge.net/qlandkartegt/$pkgname-$pkgver.tar.gz \ + 51-garmin.rules) +sha256sums=('86c38f65ba1a05c5d5eb076107094cb789db6ffc5d80bfd7bb209d645bcf87d5' + 'fab0bf0bbda536015cb66d00b55c5ae4078051d89f82b5b9ee231020316361d6') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + install -d ${srcdir}/$pkgname-$pkgver/build + cd ${srcdir}/$pkgname-$pkgver/build + + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + make +} + +package(){ + cd ${srcdir}/$pkgname-$pkgver/build + + make DESTDIR=${pkgdir} install + +#ChangeLog and example udev rule + install -D -m644 ../changelog.txt ${pkgdir}/usr/share/$pkgname/CHANGELOG + install -D -m644 ${srcdir}/51-garmin.rules ${pkgdir}/usr/share/$pkgname/51-garmin.rules +} |