diff options
author | Argyros Argyridis | 2024-04-01 12:43:05 +0300 |
---|---|---|
committer | Argyros Argyridis | 2024-04-01 12:43:05 +0300 |
commit | 9807d6a5c47d45949623960c609ba92f82a023c5 (patch) | |
tree | 87d985accae004d41e0f0decdcc2455c68b32ea2 | |
parent | 027a287644b8dd297c6b92d8abf4b429a937ab99 (diff) | |
download | aur-9807d6a5c47d45949623960c609ba92f82a023c5.tar.gz |
fixing issue where source file could not be downloaded
-rwxr-xr-x | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 19 insertions, 18 deletions
@@ -1,7 +1,7 @@ pkgbase = orfeo-toolbox pkgdesc = ORFEO Toolbox (OTB) is an open source library of image processing algorithms pkgver = 8.1.2 - pkgrel = 5 + pkgrel = 6 url = http://www.orfeo-toolbox.org arch = x86_64 arch = i686 @@ -28,7 +28,7 @@ pkgbase = orfeo-toolbox depends = glfw depends = openmpi depends = glew - source = orfeo-toolbox-8.1.2.tar.gz::https://www.orfeo-toolbox.org/packages/OTB-8.1.2.tar.gz + source = orfeo-toolbox-8.1.2.tar.gz::https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-8.1.2.tar.gz source = git+https://github.com/jmichel-otb/GKSVM.git md5sums = f07dbbd06d9a913e3af2bb0e6b2f7a8c md5sums = SKIP @@ -4,7 +4,7 @@ pkgname=orfeo-toolbox pkgver=8.1.2 _pkgver=8.0 -pkgrel=5 +pkgrel=6 pkgdesc="ORFEO Toolbox (OTB) is an open source library of image processing algorithms" arch=(x86_64 i686) url="http://www.orfeo-toolbox.org" @@ -22,7 +22,7 @@ options=() install= changelog= -source=("${pkgname}-${pkgver}.tar.gz::https://www.orfeo-toolbox.org/packages/OTB-$pkgver.tar.gz" +source=("${pkgname}-${pkgver}.tar.gz::https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-$pkgver.tar.gz" "git+https://github.com/jmichel-otb/GKSVM.git") noextract=() @@ -35,24 +35,24 @@ _gitname="GKSVM" prepare() { ## Module for monteverdi build echo $srcdir - cd $srcdir/ + cd $srcdir/ cp -ra $srcdir/GKSVM $srcdir/Modules/Remote #commenting version detection for FindMUParser.cmake since it causes an error - sed -i '62 s/^/#/' $srcdir/CMake/FindMuParser.cmake - sed -i '63 s/^/#/' $srcdir/CMake/FindMuParser.cmake - + sed -i '62 s/^/#/' $srcdir/CMake/FindMuParser.cmake + sed -i '63 s/^/#/' $srcdir/CMake/FindMuParser.cmake + } -build() { - cd $srcdir/ - +build() { + cd $srcdir/ + if [ -d "$srcdir/build/" ]; then rm -rf $srcdir/build/ fi mkdir $srcdir/build/ - + cd $srcdir/build - + cmake ../ \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -66,7 +66,7 @@ build() { -DOTB_USE_OPENCV=ON \ -DOTB_USE_MUPARSER=ON \ -DOTB_USE_MPI=ON \ - -DOTB_USE_LIBKML=OFF \ + -DOTB_USE_LIBKML=ON \ -DOTB_USE_LIBSVM=ON \ -DOTB_USE_OPENMP=ON \ -DOTB_USE_6S=ON \ @@ -82,18 +82,19 @@ build() { -DCMAKE_PREFIX_PATH=/opt/insight-toolkit4 \ -DCMAKE_CXX_STANDARD=17 \ -DBoost_USE_STATIC_LIBS=OFF - + make - + } - + package() { # Install an ldconfig conf for Orfeo libs to be visible on the # system. Arch runs `ldconfig' after install automatically: echo "/usr/lib/otb /usr/lib/otb/applications" > "${srcdir}/${pkgname}.conf" install -D -m644 "${srcdir}/${pkgname}.conf" "${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf" - + cd "$srcdir/"build make DESTDIR="$pkgdir" install } + |