summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d222f50f487d19f8dc4bafdba81fe12fe9dc9c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Maintainer: dreieck

# PKGBUILD last time manually edited: At least on 2017-01-30.

_pkgname=naturalearth-data-vector-all
pkgname="${_pkgname}-latest"
epoch=0
_pkgver=latest
pkgver=5.1.2
pkgrel=1
pkgdesc="A public domain map dataset, tightly integrated vector and raster data, to make a variety of maps with cartography or GIS software.
This package provides the cultural and physical data in 1:10mio, 1:50mio and 1:110mio scale.
WARNING: About 1 GiB big."
arch=(any)
url="http://www.naturalearthdata.com/"
license=('custom:public domain')

groups=(
        "naturalearth"
        "naturalearth-data"
       )

depends=(
        )

makedepends=(
)

optdepends=(
            "naturalearth-data-raster: For complimentary raster rendering of earth surface."
           )

provides=(
  "${_pkgname}=${pkgver}"
  "naturalearth-data-vector-cultural-10m=${pkgver}"
  "naturalearth-data-vector-cultural-50m=${pkgver}"
  "naturalearth-data-vector-cultural-110m=${pkgver}"
  "naturalearth-data-vector-physical-10m=${pkgver}"
  "naturalearth-data-vector-physical-50m=${pkgver}"
  "naturalearth-data-vector-physical-110m=${pkgver}"
  "naturalearth-data-vector-cultural=${pkgver}"
  "naturalearth-data-vector-physical=${pkgver}"
  "naturalearth-data-vector=${pkgver}"
  "naturalearth-data=${pkgver}"
)

conflicts=(
  "${_pkgname}"
  "naturalearth-data-vector-cultural-10m"
  "naturalearth-data-vector-cultural-50m"
  "naturalearth-data-vector-cultural-110m"
  "naturalearth-data-vector-physical-10m"
  "naturalearth-data-vector-physical-50m"
  "naturalearth-data-vector-physical-110m"
  "naturalearth-data-vector-cultural"
  "naturalearth-data-vector-physical"
  "naturalearth-data-vector"
)

source=(
  "natural_earth_vector_all.zip::http://naciscdn.org/naturalearth/packages/natural_earth_vector.zip"
  "LICENSE.html::http://www.naturalearthdata.com/about/terms-of-use/"
  'public_domain.txt'
)

sha256sums=(
  'SKIP'
  'SKIP'
  '718babc7ca208819649828125942f68807006c9307205c0f041de9d7a7e927a0'
)

pkgver() {
  cat "${srcdir}/VERSION" | tr -d '[[:space:]]\n'
}

package() {
  _instdirbase='/opt/naturalearth-data'
  _instdir="${pkgdir}/${_instdirbase}"
  _docdirbase="/usr/share/doc/${_pkgname}"
  _docdir="${pkgdir}/${_docdirbase}"

  install -v -d -m755 "${_instdir}"
  cp -rv "${srcdir}"/{10m,50m,110m}_{cultural,physical} "${_instdir}/"

  install -v -d -m755 "${_instdir}/meta-vector"
  cp -rv "${srcdir}"/{housekeeping,tools} "${_instdir}/meta-vector"

  install -v -d -m755 "${_docdir}"
  echo "${url}" > "${_docdir}/info.url"
  chmod 644 "${_docdir}/info.url"
  install -v -m 644 "${srcdir}"/{CHANGELOG,README.md,VERSION} "${_docdir}/"

  install -v -D -m644 "${srcdir}/public_domain.txt" "${pkgdir}/usr/share/licenses/${pkgname}/public_domain.txt"
  install -v -D -m644 "${srcdir}/LICENSE.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.html"
}