Package Details: opencpn-plugin-o_charts 2.0.13.0-2

Git Clone URL: https://aur.archlinux.org/opencpn-plugin-o_charts.git (read-only, click to copy)
Package Base: opencpn-plugin-o_charts
Description: use charts from o-charts.org in opencpn
Upstream URL: https://opencpn.org/OpenCPN/plugins/ocharts.html
Licenses: GPL2, custom
Submitter: cybuzuma
Maintainer: cybuzuma
Last Packager: cybuzuma
Votes: 1
Popularity: 0.006426
First Submitted: 2022-09-13 18:23 (UTC)
Last Updated: 2024-10-01 20:18 (UTC)

Latest Comments

cybuzuma commented on 2024-10-01 20:21 (UTC)

Thanks for the report! I updated PKGBUILD accordingly.

soenke commented on 2024-10-01 18:39 (UTC)

Had to do this to find the files:

diff --git i/PKGBUILD w/PKGBUILD
index 7ff7ec1..f6c84f6 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -28,6 +28,7 @@ build() {
 package() {
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
   # upstream is using make install for their packaging so we need to copy the files manually
+  cd o-charts_pi-${pkgver}
   cd build/app/files/
   cp -r ./* $pkgdir/usr/
   rm $pkgdir/usr/metadata.xml

guenael commented on 2024-03-15 01:08 (UTC)

@cybuzuma works fine on my side! Thanks for this update.

I created a PKGBUILD for "draw_pi" plugin, a very convenient plugin to draw exclusion areas (DST, dangerous zones etc...). I'm also pretty sure that I will not be able maintain this AUR package if I publish it. But if you want to add it to your list, I'm sure someone could will be happy, somewhere :)

pkgname=opencpn-plugin-draw_pi
pkgver=1.8.46.0
pkgrel=1
pkgdesc="OpenCPN pluging designed to allow users to place objects/items on the OpenCPN interface and have these georeferenced."
arch=('x86_64' 'aarch64')
license=("GPL2")
depends=('opencpn')
makedepends=('cmake' 'git')
url="https://opencpn.org/OpenCPN/plugins/draw.html"
source=("$pkgname-$pkgver.tar.gz::https://github.com/jongough/ocpn_draw_pi/archive/refs/tags/V${pkgver}.tar.gz" "$pkgname-$pkgver-opencpnlibs.tar.gz::https://github.com/OpenCPN/opencpn-libs/archive/3a3368f77f9e3d6c9990cc31c3a57c46d624e124.tar.gz")
b2sums=('cd38f3203d260cb47fb0ef2c1d4bfd21e0bfa70ba2771b09074207a72ef01bb9e98ad1f6929e3a46353045985ae066f23227f76246bfa26562a709e94b9a0b64' 'adc1ece18f675e01784e08e98793b261951989cb8f5b14e9351f47608a126dddef4723e03bd8ba7d4447dfa9b3702f4a82d7ac7c467db380a9df5ab54133f1b9')

prepare() {
  cp -r opencpn-libs-3a3368f77f9e3d6c9990cc31c3a57c46d624e124/* ocpn_draw_pi-${pkgver}/opencpn-libs
}

build() {
  cd ocpn_draw_pi-${pkgver}
  mkdir -p build
  cd build
  BUILD_GTK3=TRUE cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DPlugin_CXX11=ON -DUSE_GL=ON ..
  make
}

package() {
  cd ocpn_draw_pi-$pkgver/build
  DESTDIR="$pkgdir" make install
}

Note: I'm not sure about the license... (but it's an important point) Tested on my setup.

Thanks again, Guenael

guenael commented on 2024-03-10 18:48 (UTC) (edited on 2024-03-10 18:49 (UTC) by guenael)

v2.0.6.0 works fine with a simple tag/hash update.

diff --git a/PKGBUILD b/PKGBUILD
index d6568fe..74b8659 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,19 @@
 # Maintainer: uli <cybuzuma at vnxs dot de>

 pkgname=opencpn-plugin-o_charts
-pkgver=2.0.0.66
-pkgrel=2
+pkgver=2.0.6.0
+pkgrel=1
 pkgdesc="use charts from o-charts.org in opencpn"
 arch=('x86_64' 'aarch64')
 license=("GPL2" "custom")
 depends=('opencpn' 'libusb-compat')
 makedepends=('cmake')
 url="https://opencpn.org/OpenCPN/plugins/ocharts.html"
-source=("$pkgname-$pkgver.tar.gz::https://github.com/bdbcat/o-charts_pi/archive/refs/tags/v${pkgver}.tar.gz" "$pkgname-$pkgver-opencpnlibs.tar.gz::https://github.com/OpenCPN/opencpn-libs/archive/38762f4e7b8faf39133cc40efc99b12b5200f04b.tar.gz" "LICENSE")
-b2sums=('bc7fe398df635fbcc57df7311bf94f3beb20d65dd907f7823008af4321f67054d12c0ed62309ed37583e58975170db471e1d49b78b401a516471c02506f87610' '744751565f17160a927c9be8db98f7600dd78d612af9eda4d59aa2b31ca543e3d21d147c3c3134426a4d7d0d9e075d1f0d5b07a5102f8f8da823e9451caa219a' '2d09f9bc4f793b03977d05607f065fbd85e8c257edb70d27b8846f620f920d23803e320045ae3e6cc23e862d0c52336b8e334580d946518f86f4260c0a886deb')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/bdbcat/o-charts_pi/archive/refs/tags/${pkgver}.tar.gz" "$pkgname-$pkgver-opencpnlibs.tar.gz::https://github.com/OpenCPN/opencpn-libs/archive/a001083af21de2e3faa970b245877a5ee5899aba.tar.gz" "LICENSE")
+b2sums=('419ccbf90292cdfd53f4137f4e8947ce2bfa32a40a4ef2015c7070af3e29f28a6bc8297af0b777f33178130d9cb47b5f3d204fab35f6dee4d03f3071a639b3e0' '24215376af8780b00e3611f2f9c2f3a408afcddfffc25c408117e0219eb0c70ca7805af349acb7616b900498d7b8e821db6ec2e18109247e81969f08b98a74aa' '2d09f9bc4f793b03977d05607f065fbd85e8c257edb70d27b8846f620f920d23803e320045ae3e6cc23e862d0c52336b8e334580d946518f86f4260c0a886deb')

 prepare() {
-  cp -r opencpn-libs-38762f4e7b8faf39133cc40efc99b12b5200f04b/* o-charts_pi-${pkgver}/opencpn-libs
+  cp -r opencpn-libs-a001083af21de2e3faa970b245877a5ee5899aba/* o-charts_pi-${pkgver}/opencpn-libs
 }

 build() {

makepkg --printsrcinfo > .SRCINFO

guenael commented on 2024-03-10 17:52 (UTC)

A new package has been released for o-chart (v2.0.6.0) https://github.com/bdbcat/o-charts_pi/releases/tag/2.0.6.0

It fixes a bug that crashes the OpenCPN app (SIGSEGV, address boundary error) related to some charts with higher level of density/details. Details here: https://github.com/bdbcat/o-charts_pi/issues/46

I wanted to push a MR, but I'm not familiar with AUR Git repositories and I have to read some guidelines before (It's my 1st post here on AUR Archlinux BTW). "ocpn_draw_pi" could be a nice addition.

cybuzuma commented on 2023-10-28 16:12 (UTC) (edited on 2023-10-28 16:15 (UTC) by cybuzuma)

Thanks for the notice. I simply switched the make target. Now the path is called "files" on all platforms. Also, realized that I can get rid of lsb-release as build dependency.

Jomosoto commented on 2023-10-27 16:23 (UTC)

On arch derivates this doesn't work, because the folder o-charts-2.0-arch-rolling is named differently (artix instead of arch for example).

I propose:

package() {
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
   # upstream is using make install for their packaging so we need to copy the files manually
-  cd o-charts_pi-${pkgver}/build/app/o-charts-2.0-arch-rolling/
+  cd o-charts_pi-${pkgver}/build/app/*/
   cp -r ./* $pkgdir/usr/
   rm $pkgdir/usr/metadata.xml
 }