# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to> # Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> pkgname=opencpn pkgver=4.4.0 pkgrel=0 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 } md5sums="d991b49373c45f9756fa79c3b3a0f215 opencpn-4.4.0.tar.gz ed2a9317525fd5e06c3e51e582d86e40 CMakeList.txt.patch" sha256sums="577ae0fa44d31840e268b22c50b78130695fdfc796420514c93b238d5bde39b9 opencpn-4.4.0.tar.gz 2f653299f09312c4218febf66855c1b56d8b0278163e3dd5868bf28b725b4df0 CMakeList.txt.patch" sha512sums="ebe4c3518d2addbbba36cec78719cb1c853969923e7ade4f6df78a8520224fef9f421b809f573cfa770acc9b9d31a90341d6114edc02a307682d0fca5c62b26b opencpn-4.4.0.tar.gz 79daf622a5a9a54db81a09bc1004819bb4d20ce2959a4d3204e8ff09d4669e55ebb85b37961397cc6c8a00b87e081126685c51f6bdb78d9d324ce4f7c8b2f2ef CMakeList.txt.patch"