summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 873fce1b71205c9e03d2d170c82222de9a004c68 (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
# ---------------------------------------------------------------
# Maintainer: Romain Bazile <gromain.baz@gmail.com>
# ---------------------------------------------------------------

pkgname=opencpn-plugin-climatology
pkgver=1.4.r69.g5c8e992
pkgrel=2
pkgdesc="Climatology plugin for OpenCPN"
arch=('x86_64' 'aarch64')
license=("GPL3")
depends=('opencpn')
makedepends=('cmake' 'git')
url="https://opencpn.org/OpenCPN/plugins/climatology.html"
source=("$pkgname::git+https://github.com/seandepagnier/climatology_pi.git")
sha1sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

prepare(){
  cd ${srcdir}/${pkgname}
  git submodule init
  git submodule sync
  git submodule update
  rm data/.git
}
          
build() {
  cd ${srcdir}/${pkgname}
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 ..
  make
}

package() {
  cd "${pkgname}/build"
  DESTDIR="$pkgdir" make install
}