Skip to content

Instantly share code, notes, and snippets.

@samtux
Created April 12, 2015 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samtux/6d4efcf9f2ec890546bb to your computer and use it in GitHub Desktop.
Save samtux/6d4efcf9f2ec890546bb to your computer and use it in GitHub Desktop.
PKGBUILD Monteverdi2
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Argyros Argyridis <arargyridis@gmail.com>
pkgname=monteverdi2
pkgver=0.8.0
pkgrel=1
pkgdesc="A remote sensing application based on Orfeo Toolbox"
arch=(x86_64)
url="http://www.orfeo-toolbox.org/otb/monteverdi.html"
license=('CeCILL')
groups=()
depends=('orfeo-toolbox' 'qwt5' 'otb-ice' 'itk')
makedepends=()
optdepends=()
provides=(monteverdi2)
conflicts=()
replaces=(monteverdi2)
backup=()
options=()
install=
changelog=
source=(http://heanet.dl.sourceforge.net/project/orfeo-toolbox/Monteverdi2-$pkgver.tgz)
noextract=()
md5sums=('e1f41a49ea1b03d1c0b415c56a73c729')
#generate with 'makepkg -g'
prepare() {
cd $srcdir/Monteverdi2-$pkgver
echo "include_directories( /usr/include/ITK-4.5 )" >> CMakeLists.txt
echo "include_directories( /usr/include/ITK-4.5 )" >> Code/CMakeLists.txt
echo "include_directories( /usr/include/ITK-4.5 )" >> Code/Application/CMakeLists.txt
echo "include_directories( /usr/include/ITK-4.5 )" >> Code/Application/Monteverdi2/CMakeLists.txt
echo "include_directories( /usr/include/ITK-4.5 )" >> Code/Common/CMakeLists.txt
echo "include_directories( /usr/include/ITK-4.5 )" >> Code/Common/ApplicationsWrapper/CMakeLists.txt
echo "include_directories( /usr/include/ITK-4.5 )" >> Code/Common/Core/CMakeLists.txt
echo "include_directories( /usr/include/ITK-4.5 )" >> Code/Common/Gui/CMakeLists.txt
}
build() {
cd $srcdir
msg "starting make..."
if [ -d build ]; then
rm -rf build
fi
mkdir build
cd build
#export CMAKE_PREFIX_PATH="/usr/lib/lib/otb/"
cmake ../Monteverdi2-$pkgver -DCMAKE_INSTALL_PREFIX=/usr \
-DQWT_INCLUDE_DIR=/usr/include/qwt5 \
-DQWT_LIBRARY=/usr/lib64/libqwt5.so \
-DICE_INCLUDE_DIR=/usr/include/otb
make -j5
}
package() {
cd "$srcdir/"build
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment