diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 12 insertions, 18 deletions
@@ -1,9 +1,8 @@ -# --------------------------------------------------------------- -# Maintainer: Romain Bazile <gromain.baz@gmail.com> -# --------------------------------------------------------------- +# Maintainer: cybuzuma <cybuzuma at vnxs dot de> +# Contributor: Romain Bazile <gromain.baz@gmail.com> pkgname=opencpn-plugin-climatology -pkgver=1.4.2.ov50.r0.gc4e6050 +pkgver=1.4.46.0 pkgrel=1 pkgdesc="Climatology plugin for OpenCPN" arch=('x86_64' 'aarch64') @@ -11,31 +10,26 @@ license=("GPL3") depends=('opencpn') makedepends=('cmake' 'git') url="https://opencpn.org/OpenCPN/plugins/climatology.html" -source=("$pkgname::git+https://github.com/rgleason/climatology_pi.git") -sha1sums=('SKIP') +source=("$pkgname-$pkgver.tar.gz::https://github.com/rgleason/climatology_pi/archive/refs/tags/v$pkgver.tar.gz" "gl.patch") +b2sums=('79bdc314fb0b8179dd2884ac94b1c32346887358683a462ddd0fa28e231f709c432b07313bc5dd786e874bb76b1726d7f8ed496bd582e3a538aae38c98fbcccd' '9b12e9a5701a0d074265d15d50350db4d2526f1bfa7baec0b78b4f38fdd9b1e5bc77199ad337599aa28a7fa8a253246d8c764a2b3fbc2f47fc595fdb23f59306') -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 + cd climatology_pi-$pkgver + git submodule update --init + patch --strip=1 --input=../gl.patch } build() { - cd ${srcdir}/${pkgname} + cd climatology_pi-$pkgver mkdir -p build cd build - cmake -DCMAKE_INSTALL_PREFIX=/usr -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 .. + #Force GTK3, suppress cmake warnings, allow C++11 + BUILD_GTK3=TRUE cmake -Wno-dev -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DPlugin_CXX11=ON .. make } package() { - cd "${pkgname}/build" + cd climatology_pi-$pkgver/build DESTDIR="$pkgdir" make install } |