# Contributor: ScrumpyJack # Maintainer: ScrumpyJack pkgname=opencpn pkgver=4.4.0 pkgrel=1 pkgdesc="OpenCPN is a cross platform electronic navigation system" url="http://opencpn.org" arch="x86 x86_64" license="GPL2" depends="" makedepends="wxgtk-dev libexecinfo-dev linux-headers curl-dev cmake gpsd portaudio-dev tinyxml-dev" install="" subpackages="$pkgname-doc $pkgname-lang" source="$pkgname-$pkgver.tar.gz::https://github.com/OpenCPN/OpenCPN/archive/v${pkgver}.tar.gz CMakeList.txt.patch" builddir="$srcdir/OpenCPN-${pkgver}" build() { cd "$builddir" cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUNDLE_GSHHS=CRUDE \ -DBUNDLE_TCDATA=ON \ -DBUNDLE_DOCS=ON || return 1 make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="7da57d86727bcafae670454606907fcaa0eb082058b916d27ec244479f6e9aa6e9eb1ae5f1ca6522e666e43d0c76df68531b3c14b812ec26419642a49ab4e001 opencpn-4.4.0.tar.gz 79daf622a5a9a54db81a09bc1004819bb4d20ce2959a4d3204e8ff09d4669e55ebb85b37961397cc6c8a00b87e081126685c51f6bdb78d9d324ce4f7c8b2f2ef CMakeList.txt.patch"