Arch Linux PKGBUILD MicMac
# Maintainer: Samuel Mesa <samuelmesa@linuxmail.org>
pkgname=micmac
pkgver=1a72d6f1aa3e
pkgrel=1
pkgdesc="Software for automatic matching in the geographical context"
arch=('i686' 'x86_64')
url='http://logiciels.ign.fr/?-Micmac,3-'
license=('GPL')
depends=('qt4' 'opencl-headers' 'imagemagick' 'exiftool' 'proj4')
makedepends=('cmake' 'doxygen')
optdepends=()
provides=("$pkgname")
options=('staticlibs')
source=("https://culture3d:culture3d@geoportail.forge.ign.fr/hg/culture3d/archive/tip.zip")
md5sums=('09494577cd989c720219e26174585f76')
build() {
cd "${pkgname}"
#Build
if [[ -d "${srcdir}/build" ]]; then
(rm -rf ${srcdir}/build)
fi
mkdir ${srcdir}/build
cd ${srcdir}/build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_DOXYGEN=ON \
-DWITH_ETALONPOLY=ON
-DWITH_HEADER_PRECOMP=ON \
-DWITH_INTERFACE=ON \
-DWITH_OPENCL=ON \
-DWITH_QT4=ON \
../${pkgname}
make -j5
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install || return 1
}