From 26cee3c960e006cfe9259d8a3b700a18062d2830 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 27 Nov 2018 14:53:26 +0100 Subject: [PATCH] New package: OpenCPN-gshhs-crude-2.2.4 --- srcpkgs/OpenCPN-gshhs-crude/template | 62 ++++++++++++++++++++++++++++ srcpkgs/OpenCPN-gshhs-crude/update | 0 srcpkgs/OpenCPN-gshhs-full | 1 + srcpkgs/OpenCPN-gshhs-high | 1 + srcpkgs/OpenCPN-gshhs-intermediate | 1 + srcpkgs/OpenCPN-gshhs-low | 1 + 6 files changed, 66 insertions(+) create mode 100644 srcpkgs/OpenCPN-gshhs-crude/template create mode 100644 srcpkgs/OpenCPN-gshhs-crude/update create mode 120000 srcpkgs/OpenCPN-gshhs-full create mode 120000 srcpkgs/OpenCPN-gshhs-high create mode 120000 srcpkgs/OpenCPN-gshhs-intermediate create mode 120000 srcpkgs/OpenCPN-gshhs-low diff --git a/srcpkgs/OpenCPN-gshhs-crude/template b/srcpkgs/OpenCPN-gshhs-crude/template new file mode 100644 index 00000000000..41328549e5c --- /dev/null +++ b/srcpkgs/OpenCPN-gshhs-crude/template @@ -0,0 +1,62 @@ +# Template file for 'OpenCPN-gshhs-crude' +pkgname=OpenCPN-gshhs-crude +version=2.2.4 +revision=1 +wrksrc=opencpn +short_desc="World shoreline data for OpenCPN Navigation software (Crude Quality)" +maintainer="John " +license="GPL-2.0-or-later" +homepage="https://opencpn.org/" +distfiles="https://launchpad.net/~opencpn/+archive/ubuntu/opencpn/+files/opencpn-gshhs_${version}.orig.tar.xz" +checksum=bb45b68af09d5a995594748f507cd533505264f0483c8cb8425693331cccf203 +noarch=yes + +do_install() { + for file in gshhs/*; do + vinstall $file 644 usr/share/opencpn/gshhs + done +} + +OpenCPN-gshhs-low_package() { + short_desc="${short_desc/Crude/Low}" + noarch=yes + depends="OpenCPN-gshhs-crude" + pkg_install() { + vmove usr/share/opencpn/gshhs/poly-c-1.dat + vmove usr/share/opencpn/gshhs/wdb_borders_c.b + vmove usr/share/opencpn/gshhs/wdb_rivers_c.b + } +} + +OpenCPN-gshhs-intermediate_package() { + short_desc="${short_desc/Crude/Intermediate}" + noarch=yes + depends="OpenCPN-gshhs-low" + pkg_install() { + vmove usr/share/opencpn/gshhs/poly-i-1.dat + vmove usr/share/opencpn/gshhs/wdb_borders_i.b + vmove usr/share/opencpn/gshhs/wdb_rivers_i.b + } +} + +OpenCPN-gshhs-high_package() { + short_desc="${short_desc/Crude/High}" + noarch=yes + depends="OpenCPN-gshhs-intermediate" + pkg_install() { + vmove usr/share/opencpn/gshhs/poly-h-1.dat + vmove usr/share/opencpn/gshhs/wdb_borders_h.b + vmove usr/share/opencpn/gshhs/wdb_rivers_h.b + } +} + +OpenCPN-gshhs-full_package() { + short_desc="${short_desc/Crude/Full}" + noarch=yes + depends="OpenCPN-gshhs-high" + pkg_install() { + vmove usr/share/opencpn/gshhs/poly-f-1.dat + vmove usr/share/opencpn/gshhs/wdb_borders_f.b + vmove usr/share/opencpn/gshhs/wdb_rivers_f.b + } +} diff --git a/srcpkgs/OpenCPN-gshhs-crude/update b/srcpkgs/OpenCPN-gshhs-crude/update new file mode 100644 index 00000000000..e69de29bb2d diff --git a/srcpkgs/OpenCPN-gshhs-full b/srcpkgs/OpenCPN-gshhs-full new file mode 120000 index 00000000000..93d2f320f97 --- /dev/null +++ b/srcpkgs/OpenCPN-gshhs-full @@ -0,0 +1 @@ +OpenCPN-gshhs-low \ No newline at end of file diff --git a/srcpkgs/OpenCPN-gshhs-high b/srcpkgs/OpenCPN-gshhs-high new file mode 120000 index 00000000000..93d2f320f97 --- /dev/null +++ b/srcpkgs/OpenCPN-gshhs-high @@ -0,0 +1 @@ +OpenCPN-gshhs-low \ No newline at end of file diff --git a/srcpkgs/OpenCPN-gshhs-intermediate b/srcpkgs/OpenCPN-gshhs-intermediate new file mode 120000 index 00000000000..93d2f320f97 --- /dev/null +++ b/srcpkgs/OpenCPN-gshhs-intermediate @@ -0,0 +1 @@ +OpenCPN-gshhs-low \ No newline at end of file diff --git a/srcpkgs/OpenCPN-gshhs-low b/srcpkgs/OpenCPN-gshhs-low new file mode 120000 index 00000000000..ad58ae56111 --- /dev/null +++ b/srcpkgs/OpenCPN-gshhs-low @@ -0,0 +1 @@ +OpenCPN-gshhs-crude \ No newline at end of file