New package: OpenCPN-gshhs-crude-2.2.4

This commit is contained in:
John 2018-11-27 14:53:26 +01:00 committed by maxice8
parent 43fbba6ead
commit 26cee3c960
6 changed files with 66 additions and 0 deletions

View File

@ -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 <johnz@posteo.net>"
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
}
}

View File

1
srcpkgs/OpenCPN-gshhs-full Symbolic link
View File

@ -0,0 +1 @@
OpenCPN-gshhs-low

1
srcpkgs/OpenCPN-gshhs-high Symbolic link
View File

@ -0,0 +1 @@
OpenCPN-gshhs-low

View File

@ -0,0 +1 @@
OpenCPN-gshhs-low

1
srcpkgs/OpenCPN-gshhs-low Symbolic link
View File

@ -0,0 +1 @@
OpenCPN-gshhs-crude