58 lines
1.6 KiB
Bash
58 lines
1.6 KiB
Bash
# Template file for 'OpenCPN-gshhs-crude'
|
|
pkgname=OpenCPN-gshhs-crude
|
|
version=2.2.4
|
|
revision=2
|
|
wrksrc=opencpn
|
|
short_desc="World shoreline data for OpenCPN Navigation software (Crude Quality)"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
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
|
|
|
|
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}"
|
|
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}"
|
|
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}"
|
|
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}"
|
|
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
|
|
}
|
|
}
|